Merge pull request #8838 from owncloud/backgroundjob-legacy-gc

Support having legacy `OC_Cache_FileGlobalGC` background jobs
This commit is contained in:
Thomas Müller 2014-06-03 15:06:35 +02:00
commit 587159c73e
1 changed files with 3 additions and 0 deletions

View File

@ -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']);