aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/index.php b/index.php
index 73d9e022..57e13d4e 100644
--- a/index.php
+++ b/index.php
@@ -604,10 +604,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM
604 } 604 }
605 // -------- User wants to logout. 605 // -------- User wants to logout.
606 if (isset($_SERVER['QUERY_STRING']) && startsWith($_SERVER['QUERY_STRING'], 'do=logout')) { 606 if (isset($_SERVER['QUERY_STRING']) && startsWith($_SERVER['QUERY_STRING'], 'do=logout')) {
607 invalidateCaches($conf->get('resource.page_cache')); 607 header('Location: ./logout');
608 $sessionManager->logout();
609 setcookie(LoginManager::$STAY_SIGNED_IN_COOKIE, 'false', 0, WEB_PATH);
610 header('Location: ?');
611 exit; 608 exit;
612 } 609 }
613 610
@@ -1894,7 +1891,7 @@ if (isset($_SERVER['QUERY_STRING']) && startsWith($_SERVER['QUERY_STRING'], 'do=
1894 exit; 1891 exit;
1895} 1892}
1896 1893
1897$containerBuilder = new ContainerBuilder($conf, $sessionManager, $loginManager); 1894$containerBuilder = new ContainerBuilder($conf, $sessionManager, $loginManager, WEB_PATH);
1898$container = $containerBuilder->build(); 1895$container = $containerBuilder->build();
1899$app = new App($container); 1896$app = new App($container);
1900 1897