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

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