don't silently exit in cli-mode in case ownCloud in not yet installed

This commit is contained in:
Thomas Müller 2014-07-24 13:45:06 +02:00
parent e2327f83ed
commit 2594fb80aa
1 changed files with 2 additions and 0 deletions

View File

@ -214,6 +214,8 @@ class OC {
if (!OC::$CLI) {
$url = 'http://' . $_SERVER['SERVER_NAME'] . OC::$WEBROOT . '/index.php';
header("Location: $url");
} else {
throw new Exception("Not installed");
}
exit();
}