aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-03-21 14:59:30 +0200
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-03-21 14:59:30 +0200
commitad53faf25cc2f83594f3f756923a042351f4f202 (patch)
treec7d415ade8f1ce1d80408fb465bdb68f93886b71 /index.php
parent6fa3f70bc217bbc4a352c287d3b896a6dd50994c (diff)
downloadwallabag-ad53faf25cc2f83594f3f756923a042351f4f202.tar.gz
wallabag-ad53faf25cc2f83594f3f756923a042351f4f202.tar.zst
wallabag-ad53faf25cc2f83594f3f756923a042351f4f202.zip
fix of issue under nginx and php-fpm
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/index.php b/index.php
index bc28a19d..fb13f38d 100644
--- a/index.php
+++ b/index.php
@@ -14,9 +14,7 @@ require_once 'inc/poche/global.inc.php';
14 14
15# Start session 15# Start session
16Session::$sessionName = 'poche'; 16Session::$sessionName = 'poche';
17if ( !isset($_GET['login']) ) { 17Session::init();
18 Session::init();
19}
20 18
21# Start Poche 19# Start Poche
22$poche = new Poche(); 20$poche = new Poche();
@@ -122,6 +120,7 @@ if (Session::isLogged()) {
122} else { 120} else {
123 $tpl_file = Tools::getTplFile('login'); 121 $tpl_file = Tools::getTplFile('login');
124 $tpl_vars['http_auth'] = 0; 122 $tpl_vars['http_auth'] = 0;
123 Session::logout();
125} 124}
126 125
127# because messages can be added in $poche->action(), we have to add this entry now (we can add it before) 126# because messages can be added in $poche->action(), we have to add this entry now (we can add it before)