Merge pull request #23208 from owncloud/reduce-unneeded-methods

Replace unneded OC::needUpgrade with OCP method
This commit is contained in:
Thomas Müller 2016-03-14 16:10:19 +01:00
commit 0b6eaa863d
2 changed files with 1 additions and 11 deletions

View File

@ -338,16 +338,6 @@ class OC {
die();
}
/**
* check if the instance needs to perform an upgrade
*
* @return bool
* @deprecated use \OCP\Util::needUpgrade() instead
*/
public static function needUpgrade() {
return \OCP\Util::needUpgrade();
}
/**
* Checks if the version requires an update and shows
* @param bool $showTemplate Whether an update screen should get shown

View File

@ -99,7 +99,7 @@ class BackgroundJob {
* @since 4.5.0
*/
public static function addRegularTask($klass, $method) {
if (!\OC::needUpgrade()) {
if (!\OCP\Util::needUpgrade()) {
self::registerJob('OC\BackgroundJob\Legacy\RegularJob', array($klass, $method));
return true;
}