aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/index.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-07 15:03:42 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-07 15:03:42 +0100
commitea849d7c68cc3de33825c1daafd06b9f8bbf747c (patch)
treece5b3f47f5d81e1209581322d987c5603ee0acd3 /app/views/index/index.phtml
parent7ef4d6c033d6d12a644b6cf39940591901fdcb3b (diff)
Prepare better organization of view files for exts
View files must be well-splitted to simplify work for extensions. See https://github.com/FreshRSS/FreshRSS/issues/252
Diffstat (limited to 'app/views/index/index.phtml')
-rw-r--r--app/views/index/index.phtml23
1 files changed, 0 insertions, 23 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml
index 8b93461dd..e69de29bb 100644
--- a/app/views/index/index.phtml
+++ b/app/views/index/index.phtml
@@ -1,23 +0,0 @@
-<?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__);
-}