From 50035f5a923de5e9dea75291df55a8c505291386 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 16 Apr 2011 13:24:26 +0200 Subject: redirect to owncloud root after logout --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'index.php') 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" )); -- cgit v1.2.3