mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-10-01 12:50:20 +02:00
orig theme renamed to mobile
This commit is contained in:
1 parent
e9ae32e60d
commit
f0b1c8338a
135 files changed
+505
-35
No files matched your search
@@ -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