diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-10 18:01:07 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-18 11:10:07 +0200 |
commit | 799205488cf82312586f99185e13df6015caa2ff (patch) | |
tree | d8c6172b48d8cdabb16ef8b535a21c96b1ebc739 /lib/public | |
parent | baf46c74cda834bbdb4ecf4669587b92b56fe9a9 (diff) | |
download | nextcloud-server-799205488cf82312586f99185e13df6015caa2ff.tar.gz nextcloud-server-799205488cf82312586f99185e13df6015caa2ff.zip |
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.php | 9 |
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(); + } } |