aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Configuration.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-06-14 09:05:46 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-06-14 09:05:46 +0200
commit5a98cc7532c1dbc0c790caefa5ff317663a80740 (patch)
treea6705f67a706f3ee9e427e0dcd1d108b0ee64ef0 /app/Models/Configuration.php
parent61f4d5457818204eb28ed394d4f1b97160542baa (diff)
parenta7e833280954a537e12d5a3f4fa12a5b9e8412da (diff)
Merge branch 'aledeg-user-queries' into dev
Diffstat (limited to 'app/Models/Configuration.php')
-rw-r--r--app/Models/Configuration.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php
index 0d6666297..ffd20deca 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,18 @@ class FreshRSS_Configuration {
$this->data['sharing'][] = $value;
}
}
+ public function _queries ($values) {
+ $this->data['queries'] = array();
+ foreach ($values as $value) {
+ $value = array_filter($value);
+ $params = $value;
+ unset($params['name']);
+ unset($params['url']);
+ $value['url'] = Minz_Url::display(array('params' => $params));
+
+ $this->data['queries'][] = $value;
+ }
+ }
public function _theme($value) {
$this->data['theme'] = $value;
}