You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
766 B
23 lines
766 B
<?php |
|
|
|
$output = Minz_Request::param('output', 'normal'); |
|
|
|
if (FreshRSS_Auth::hasAccess() || Minz_Configuration::allowAnonymous()) { |
|
if ($output === 'normal') { |
|
$this->renderHelper('view/normal_view'); |
|
} elseif ($output === 'reader') { |
|
$this->renderHelper('view/reader_view'); |
|
} elseif ($output === 'rss') { |
|
$this->renderHelper('view/rss_view'); |
|
} else { |
|
Minz_Request::_param('output', 'normal'); |
|
$output = 'normal'; |
|
$this->renderHelper('view/normal_view'); |
|
} |
|
} elseif ($output === 'rss') { |
|
// token has already been checked in the controller so we can show the view |
|
$this->renderHelper('view/rss_view'); |
|
} else { |
|
// Normally, it should not happen, but log it anyway |
|
Minz_Log::error('Something is wrong in ' . __FILE__ . ' line ' . __LINE__); |
|
}
|
|
|