diff options
| author | 2014-09-24 20:06:34 +0200 | |
|---|---|---|
| committer | 2014-09-24 20:06:34 +0200 | |
| commit | c446625c7f6eda76b03fdac228b2f7b4ded74130 (patch) | |
| tree | 42ab49b32804eeca003dfe69d6456ecf732b8fb1 /app/Controllers/indexController.php | |
| parent | ffbfbb92cc89c5ae07e0a28ee3477fcd0c44505d (diff) | |
| parent | a12d90d85d86c168a6e8a13345f05897f17958a4 (diff) | |
Merge remote-tracking branch 'upstream/dev' into dev
Diffstat (limited to 'app/Controllers/indexController.php')
| -rwxr-xr-x | app/Controllers/indexController.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index b69c09127..e8e26b142 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -84,7 +84,7 @@ class FreshRSS_index_Controller extends Minz_ActionController { $first = Minz_Request::param ('next', ''); $ajax_request = Minz_Request::param('ajax', false); - if ($ajax_request == 1 && $this->view->conf->display_posts) { + if ($output === 'reader') { $nb = max(1, round($nb / 2)); } @@ -337,6 +337,10 @@ class FreshRSS_index_Controller extends Minz_ActionController { } public function formLoginAction () { + if ($this->view->loginOk) { + Minz_Request::forward(array('c' => 'index', 'a' => 'index'), true); + } + if (Minz_Request::isPost()) { $ok = false; $nonce = Minz_Session::param('nonce'); |
