orig theme renamed to mobile

This commit is contained in:
SJ
2013-07-27 13:10:48 +02:00
parent e9ae32e60d
commit f0b1c8338a
135 changed files with 504 additions and 34 deletions

View File

@ -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; }