mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Fix scheduler api state display
This commit is contained in:
@@ -112,11 +112,9 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
} else {
|
} else {
|
||||||
$taskManager = $app['task-manager'];
|
$taskManager = $app['task-manager'];
|
||||||
$ret = $taskManager->getSchedulerState();
|
$ret = $taskManager->getSchedulerState();
|
||||||
}
|
|
||||||
|
|
||||||
$ret['state'] = $ret['status'];
|
$ret['state'] = $ret['status'];
|
||||||
|
|
||||||
unset($ret['qdelay'], $ret['status']);
|
unset($ret['qdelay'], $ret['status']);
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($ret['updated_on']) && null !== $ret['updated_on']) {
|
if (isset($ret['updated_on']) && null !== $ret['updated_on']) {
|
||||||
$ret['updated_on'] = $ret['updated_on']->format(DATE_ATOM);
|
$ret['updated_on'] = $ret['updated_on']->format(DATE_ATOM);
|
||||||
|
Reference in New Issue
Block a user