summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-03 11:01:01 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-03 11:01:01 +0200
commitec9bf8a2d6edad1dcf0893844a9843568a0a4f07 (patch)
tree1543ef9678ab0ab8ae75d1f3fc7985e9ac69264a
parentb62cb007715e649d9656c32bfe4b42599fd96983 (diff)
downloadnextcloud-server-ec9bf8a2d6edad1dcf0893844a9843568a0a4f07.tar.gz
nextcloud-server-ec9bf8a2d6edad1dcf0893844a9843568a0a4f07.zip
Support having legacy `OC_Cache_FileGlobalGC` background jobs
-rw-r--r--lib/private/backgroundjob/joblist.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/backgroundjob/joblist.php b/lib/private/backgroundjob/joblist.php
index 9fa13c25851..6641097cf90 100644
--- a/lib/private/backgroundjob/joblist.php
+++ b/lib/private/backgroundjob/joblist.php
@@ -149,6 +149,9 @@ class JobList implements IJobList {
/**
* @var Job $job
*/
+ if ($class === 'OC_Cache_FileGlobalGC') {
+ $class = '\OC\Cache\FileGlobalGC';
+ }
$job = new $class();
$job->setId($row['id']);
$job->setLastRun($row['last_run']);