diff options
| author | 2013-06-16 20:48:56 +0200 | |
|---|---|---|
| committer | 2013-06-16 20:48:56 +0200 | |
| commit | 48cfe1571ececb9fae0c361d9147690b04d310e0 (patch) | |
| tree | a14869bc4ec60bdb95dc52b0ecac4993dff570f7 /app/controllers/indexController.php | |
| parent | 36316a6d7e81c3e73cad1362194e73a9006b0c72 (diff) | |
Fix issue #67 : différentes vues implémentées + possibilité de choisir la vue par défaut
Diffstat (limited to 'app/controllers/indexController.php')
| -rwxr-xr-x | app/controllers/indexController.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php index 3f10720c2..a5a5501e7 100755 --- a/app/controllers/indexController.php +++ b/app/controllers/indexController.php @@ -6,13 +6,19 @@ class indexController extends ActionController { private $mode = 'all'; public function indexAction () { - if (Request::param ('output') == 'rss') { + $output = Request::param ('output'); + + if ($output == 'rss') { $this->view->_useLayout (false); } else { View::appendScript (Url::display ('/scripts/shortcut.js')); View::appendScript (Url::display (array ('c' => 'javascript', 'a' => 'main'))); View::appendScript (Url::display (array ('c' => 'javascript', 'a' => 'actualize'))); View::appendScript (Url::display ('/scripts/endless_mode.js')); + + if(!$output) { + Request::_param ('output', $this->view->conf->viewMode()); + } } $entryDAO = new EntryDAO (); |
