summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-07-04 14:28:12 +0200
committerkondou <kondou@ts.unde.re>2014-09-09 17:26:11 +0200
commit69f2c0544e80ae1b47a715b3d8e586ac2bfffe98 (patch)
tree693f69163a366c209bf5e2ac6faab4dac05ea1a5 /lib/base.php
parentdc99fd768ac99c380f1110c7bd4dd84d03256cd8 (diff)
downloadnextcloud-server-69f2c0544e80ae1b47a715b3d8e586ac2bfffe98.tar.gz
nextcloud-server-69f2c0544e80ae1b47a715b3d8e586ac2bfffe98.zip
Refresh if maintenance mode is over
Using status.php for this. I modified status.php to also show, whether we're in maintenance. Checks every 20 seconds if maintenance is over, if yes: reload.
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 5d52db68cb7..c113ed3b506 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -255,6 +255,7 @@ class OC {
// render error page
$tmpl = new OC_Template('', 'update.user', 'guest');
+ OC_Util::addscript('maintenance-check');
$tmpl->printPage();
die();
}