summaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-22 22:22:36 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-22 22:22:36 +0100
commitf121df42eedfb0bf618ee952ad9c24d76a016127 (patch)
tree5803b7f770d676182f70e70e4d5e6f0b7f8ee97a /app/FreshRSS.php
parentf4c8b95b831693f66d46f9ae06550b0944280ebe (diff)
Montre toggle_aside seulement pour le mode normal
Corrige https://github.com/marienfressinaud/FreshRSS/issues/373 Au passage, introduit une classe au niveau `body` avec le nom de la vue en cours (pas utilisé pour l'instant)
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 40e1d23db..c51f91dec 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -106,8 +106,8 @@ class FreshRSS extends Minz_FrontController {
private function loadParamsView () {
Minz_Session::_param ('language', $this->conf->language);
Minz_Translate::init();
- $output = Minz_Request::param ('output');
- if (!$output) {
+ $output = Minz_Request::param ('output', '');
+ if (($output === '') || ($output !== 'normal' && $output !== 'rss' && $output !== 'reader' && $output !== 'global')) {
$output = $this->conf->view_mode;
Minz_Request::_param ('output', $output);
}