diff options
| author | 2014-02-16 19:10:26 +0100 | |
|---|---|---|
| committer | 2014-02-16 19:10:26 +0100 | |
| commit | d443c53db24eb83a90e1acebbaff9a242c05eb87 (patch) | |
| tree | d7700aedff7f31ae9e447e4ad89374866d3b7005 | |
| parent | 65f50db38ac2b0680da24efdf8901442d2a73795 (diff) | |
Micro-optimisation
Place en premier les cas les plus importants (humain qui attend)
| -rw-r--r-- | app/views/index/index.phtml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml index 78271291e..1ff36ca8e 100644 --- a/app/views/index/index.phtml +++ b/app/views/index/index.phtml @@ -3,12 +3,14 @@ $output = Minz_Request::param ('output', 'normal'); if ($this->loginOk || Minz_Configuration::allowAnonymous()) { - if ($output === 'rss') { - $this->renderHelper ('view/rss_view'); + if ($output === 'normal') { + $this->renderHelper ('view/normal_view'); } elseif ($output === 'reader') { $this->renderHelper ('view/reader_view'); } elseif ($output === 'global') { $this->renderHelper ('view/global_view'); + } elseif ($output === 'rss') { + $this->renderHelper ('view/rss_view'); } else { Minz_Request::_param ('output', 'normal'); $output = 'normal'; |
