diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-20 10:05:42 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-20 10:05:42 +0200 |
commit | 2cd263e0bd8a36344e1dac5585b362b25ec19261 (patch) | |
tree | b02736f0f9d4c26cc1dd56895c6c8ef415011fe8 /inc | |
parent | 4e97e6e8b9b6b02942f506b930b215540cd1f2a1 (diff) | |
download | wallabag-2cd263e0bd8a36344e1dac5585b362b25ec19261.tar.gz wallabag-2cd263e0bd8a36344e1dac5585b362b25ec19261.tar.zst wallabag-2cd263e0bd8a36344e1dac5585b362b25ec19261.zip |
ajout d'url qui déconnait
Diffstat (limited to 'inc')
-rw-r--r-- | inc/store/sqlite.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/store/sqlite.class.php b/inc/store/sqlite.class.php index 51054bc5..b2ae94a7 100644 --- a/inc/store/sqlite.class.php +++ b/inc/store/sqlite.class.php | |||
@@ -94,10 +94,10 @@ class Sqlite extends Store { | |||
94 | return $entries; | 94 | return $entries; |
95 | } | 95 | } |
96 | 96 | ||
97 | public function add() { | 97 | public function add($url, $title, $content) { |
98 | parent::__construct(); | 98 | parent::__construct(); |
99 | $sql_action = 'INSERT INTO entries ( url, title, content ) VALUES (?, ?, ?)'; | 99 | $sql_action = 'INSERT INTO entries ( url, title, content ) VALUES (?, ?, ?)'; |
100 | $params_action = array($url, $parametres_url['title'], $parametres_url['content']); | 100 | $params_action = array($url, $title, $content); |
101 | $query = $this->executeQuery($sql_action, $params_action); | 101 | $query = $this->executeQuery($sql_action, $params_action); |
102 | } | 102 | } |
103 | 103 | ||
@@ -133,4 +133,4 @@ class Sqlite extends Store { | |||
133 | $params_update = array($content, $id); | 133 | $params_update = array($content, $id); |
134 | $query = $this->executeQuery($sql_update, $params_update); | 134 | $query = $this->executeQuery($sql_update, $params_update); |
135 | } | 135 | } |
136 | } \ No newline at end of file | 136 | } |