summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2011-08-06 23:19:00 +0200
committerFrank Karlitschek <karlitschek@kde.org>2011-08-06 23:19:00 +0200
commitb513a6054036455605d96f1d1827e156b2127ce3 (patch)
tree0fcc89bdfa9288ca2e71cbc9feff0bce09cde69d /lib/base.php
parentd9ccbe96dda717712d67274c777a0e614743784f (diff)
downloadnextcloud-server-b513a6054036455605d96f1d1827e156b2127ce3.tar.gz
nextcloud-server-b513a6054036455605d96f1d1827e156b2127ce3.zip
nicer error report and streamlined setup
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index e9451c45b61..520c12d4df1 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -125,7 +125,17 @@ if( OC_Config::getValue( "forcessl", false )){
}
}
-$error=(count(OC_Util::checkServer())>0);
+$errors=OC_Util::checkServer();
+$error=(count($errors)>0);
+
+if($error) {
+ $tmpl = new OC_Template( '', 'error', 'guest' );
+ $tmpl->assign('errors',$errors);
+ $tmpl->printPage();
+ exit;
+}
+
+
// User and Groups
if( !OC_Config::getValue( "installed", false )){