diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-16 15:24:26 +0400 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-16 15:24:26 +0400 |
commit | 50035f5a923de5e9dea75291df55a8c505291386 (patch) | |
tree | adf32e097bcecdeb3b2198e8e8d257ffa4d38bd6 /index.php | |
parent | 9dd0d90f69d7737d03b6747ae46394035396ef5b (diff) |
redirect to owncloud root after logout
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php index 2f56510bfbb..89c24cac52f 100644 --- a/index.php +++ b/index.php @@ -29,7 +29,8 @@ var_dump( $_SESSION ); if( OC_USER::isLoggedIn()){ if( $_GET["logout"] ){ OC_USER::logout(); - OC_TEMPLATE::printGuestPage( "", "logout" ); + header( "Location: $WEBROOT"); + exit(); } else{ header( "Location: ".OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" )); |