mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
fix of issue under nginx and php-fpm
This commit is contained in:
parent
6fa3f70bc2
commit
ad53faf25c
2 changed files with 5 additions and 6 deletions
|
@ -14,9 +14,7 @@ require_once 'inc/poche/global.inc.php';
|
|||
|
||||
# Start session
|
||||
Session::$sessionName = 'poche';
|
||||
if ( !isset($_GET['login']) ) {
|
||||
Session::init();
|
||||
}
|
||||
Session::init();
|
||||
|
||||
# Start Poche
|
||||
$poche = new Poche();
|
||||
|
@ -122,6 +120,7 @@ if (Session::isLogged()) {
|
|||
} else {
|
||||
$tpl_file = Tools::getTplFile('login');
|
||||
$tpl_vars['http_auth'] = 0;
|
||||
Session::logout();
|
||||
}
|
||||
|
||||
# because messages can be added in $poche->action(), we have to add this entry now (we can add it before)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue