Support having legacy `OC_Cache_FileGlobalGC` background jobs

This commit is contained in:
Robin Appelman 2014-06-03 11:01:01 +02:00
parent b62cb00771
commit ec9bf8a2d6
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']);