diff options
| author | 2014-09-24 13:28:09 +0200 | |
|---|---|---|
| committer | 2014-09-24 13:28:09 +0200 | |
| commit | 5a1baff9be7cf9fe3f59fe2a7dc34fbadacc1a99 (patch) | |
| tree | 48a47ca2103a7be2c48b5049460e34fb3d231351 /app/Controllers/configureController.php | |
| parent | 666162ae56c2df8ae6a7ed6602b69f6caad10c7c (diff) | |
Refactor removing query by get param
See https://github.com/marienfressinaud/FreshRSS/issues/625
Diffstat (limited to 'app/Controllers/configureController.php')
| -rwxr-xr-x | app/Controllers/configureController.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index e6e9172e6..231865bd7 100755 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -59,15 +59,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController { $catDAO->deleteCategory($ids[$key]); // Remove related queries. - $final_queries = array(); - $id_cat_in_query = 'c_' . $ids[$key]; - foreach ($this->view->conf->queries as $key => $query) { - if (empty($query['get']) || - $query['get'] !== $id_cat_in_query) { - $final_queries[$key] = $query; - } - } - $this->view->conf->_queries($final_queries); + $this->view->conf->remove_query_by_get('c_' . $ids[$key]); $this->view->conf->save(); } } |
