mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-04 06:29:26 -05:00
Micro-optimisation
Place en premier les cas les plus importants (humain qui attend)
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user