forked from wallabag/wallabag
ajout d'url qui déconnait
This commit is contained in:
@ -94,10 +94,10 @@ class Sqlite extends Store {
|
|||||||
return $entries;
|
return $entries;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function add() {
|
public function add($url, $title, $content) {
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$sql_action = 'INSERT INTO entries ( url, title, content ) VALUES (?, ?, ?)';
|
$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);
|
$query = $this->executeQuery($sql_action, $params_action);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,4 +133,4 @@ class Sqlite extends Store {
|
|||||||
$params_update = array($content, $id);
|
$params_update = array($content, $id);
|
||||||
$query = $this->executeQuery($sql_update, $params_update);
|
$query = $this->executeQuery($sql_update, $params_update);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user