summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-03-14 10:10:29 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-03-14 10:10:29 +0100
commit086485100129797af5cd0bcd9d32ff132bb46a1b (patch)
tree10dbd47056dd74f95f9160bfc88577b83464c71c /lib/public
parente0998c27ff205566db7799dce177192d2b776bc1 (diff)
downloadnextcloud-server-086485100129797af5cd0bcd9d32ff132bb46a1b.tar.gz
nextcloud-server-086485100129797af5cd0bcd9d32ff132bb46a1b.zip
Replace unneded OC::needUpgrade with OCP method
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/backgroundjob.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/backgroundjob.php b/lib/public/backgroundjob.php
index 69397bb3e45..f532a97c747 100644
--- a/lib/public/backgroundjob.php
+++ b/lib/public/backgroundjob.php
@@ -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;
}