]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
ajout d'url qui déconnait
authornicosomb <nicolas@loeuillet.org>
Sat, 20 Apr 2013 08:05:42 +0000 (10:05 +0200)
committernicosomb <nicolas@loeuillet.org>
Sat, 20 Apr 2013 08:05:42 +0000 (10:05 +0200)
inc/store/sqlite.class.php

index 51054bc5d5f506cc01aa5ec0febd5adf686c579e..b2ae94a7f2418caaee93154decc0b5770826e10f 100644 (file)
@@ -94,10 +94,10 @@ class Sqlite extends Store {
         return $entries;
     }
 
-    public function add() {
+    public function add($url, $title, $content) {
         parent::__construct();
         $sql_action     = 'INSERT INTO entries ( url, title, content ) VALUES (?, ?, ?)';
-        $params_action  = array($url, $parametres_url['title'], $parametres_url['content']);
+        $params_action  = array($url, $title, $content);
         $query          = $this->executeQuery($sql_action, $params_action);
     }
 
@@ -133,4 +133,4 @@ class Sqlite extends Store {
         $params_update  = array($content, $id);
         $query          = $this->executeQuery($sql_update, $params_update);
     }
-}
\ No newline at end of file
+}