diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-04-16 14:59:27 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-04-16 14:59:27 +0200 |
commit | b5f913a3fc66a3036fc7ea291d67a72f7a0ecd40 (patch) | |
tree | 7c4fe7e0ad5a9ce246ae334d03629229039bb3e8 /index.php | |
parent | 4c74029489194bb007ccf5310381b9dde48aedb3 (diff) | |
parent | 5112295723a841da0baa47c5560a43a2cf999119 (diff) | |
download | nextcloud-server-b5f913a3fc66a3036fc7ea291d67a72f7a0ecd40.tar.gz nextcloud-server-b5f913a3fc66a3036fc7ea291d67a72f7a0ecd40.zip |
Merge branch 'refactoring' of git://anongit.kde.org/owncloud into refactoring
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 c744f094e67..8f5c99fcd85 100644 --- a/index.php +++ b/index.php @@ -27,7 +27,8 @@ require_once( 'template.php' ); 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" )); |