Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-10 20:01:07 +0400
committerVincent Petry <pvince81@owncloud.com>2014-06-18 13:10:07 +0400
commit799205488cf82312586f99185e13df6015caa2ff (patch)
treed8c6172b48d8cdabb16ef8b535a21c96b1ebc739 /lib/public
parentbaf46c74cda834bbdb4ecf4669587b92b56fe9a9 (diff)
Prevent loadApps on upgrade
Moved OC::needUpgrade() to OCP\Util::needUpgrade() to make it accessible form the router. Moved maintenance + upgrade check to the router.
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/util.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index d1faec3997f..8f4691eeade 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -516,4 +516,13 @@ class Util {
public static function isPublicLinkPasswordRequired() {
return \OC_Util::isPublicLinkPasswordRequired();
}
+
+ /**
+ * Checks whether the current version needs upgrade.
+ *
+ * @return bool true if upgrade is needed, false otherwise
+ */
+ public static function needUpgrade() {
+ return \OC_Util::needUpgrade();
+ }
}