aboutsummaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-06-13 20:20:43 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-06-13 20:20:43 +0200
commit2b8dc666345d334f50bf2f4f32f0b127edb40c3a (patch)
tree0802e16f4fc2c98a706b8d68cea0bcf89549a18d /app/Models
parent61f4d5457818204eb28ed394d4f1b97160542baa (diff)
parenta61180032f6c663ed3946fe0bbdb70ac3b8ec96a (diff)
Merge branch 'user-queries' of https://github.com/aledeg/FreshRSS into aledeg-user-queries
Conflicts: app/layout/nav_menu.phtml
Diffstat (limited to 'app/Models')
-rw-r--r--app/Models/Configuration.php7
-rw-r--r--app/Models/Themes.php1
2 files changed, 8 insertions, 0 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php
index 0d6666297..b0ce70000 100644
--- a/app/Models/Configuration.php
+++ b/app/Models/Configuration.php
@@ -53,6 +53,7 @@ class FreshRSS_Configuration {
'bottomline_date' => true,
'bottomline_link' => true,
'sharing' => array(),
+ 'queries' => array(),
);
private $available_languages = array(
@@ -219,6 +220,12 @@ class FreshRSS_Configuration {
$this->data['sharing'][] = $value;
}
}
+ public function _queries ($values) {
+ $this->data['queries'] = array();
+ foreach ($values as $value) {
+ $this->data['queries'][] = array_filter($value);
+ }
+ }
public function _theme($value) {
$this->data['theme'] = $value;
}
diff --git a/app/Models/Themes.php b/app/Models/Themes.php
index 620149934..2e2c3f9cd 100644
--- a/app/Models/Themes.php
+++ b/app/Models/Themes.php
@@ -70,6 +70,7 @@ class FreshRSS_Themes extends Minz_Model {
'add' => '✚',
'all' => '☰',
'bookmark' => '★',
+ 'bookmark-add' => '✚',
'category' => '☷',
'category-white' => '☷',
'close' => '❌',