mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
orig theme renamed to mobile
This commit is contained in:
@ -759,7 +759,7 @@ class ModelSearchSearch extends Model {
|
||||
|
||||
public function get_search_terms() {
|
||||
|
||||
$query = $this->db->query("SELECT term FROM " . TABLE_SEARCH . " where email=? ORDER BY ts DESC", array($_SESSION['email']));
|
||||
$query = $this->db->query("SELECT term FROM " . TABLE_SEARCH . " WHERE email=? ORDER BY ts DESC", array($_SESSION['email']));
|
||||
if(isset($query->rows)) { return $query->rows; }
|
||||
|
||||
return array();
|
||||
@ -792,6 +792,11 @@ class ModelSearchSearch extends Model {
|
||||
}
|
||||
|
||||
|
||||
public function remove_search_terms() {
|
||||
$query = $this->db->query("DELETE FROM " . TABLE_SEARCH . " WHERE email=?", array($_SESSION['email']));
|
||||
}
|
||||
|
||||
|
||||
private function fixup_meta_characters($s = '') {
|
||||
if($s == '') { return $s; }
|
||||
|
||||
|
Reference in New Issue
Block a user