mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
System: Configuration: History - fix php deprecation messages.
This commit is contained in:
parent
6bc7903fa4
commit
dca47d1c7f
@ -99,7 +99,7 @@ class BackupController extends ApiControllerBase
|
||||
if (isset($xmlNode->revision)) {
|
||||
$cfg_item = [
|
||||
'time' => (string)$xmlNode->revision->time,
|
||||
'time_iso' => date('c', (string)$xmlNode->revision->time),
|
||||
'time_iso' => date('c', (int)$xmlNode->revision->time),
|
||||
'description' => (string)$xmlNode->revision->description,
|
||||
'username' => (string)$xmlNode->revision->username,
|
||||
'filesize' => filesize($filename),
|
||||
@ -110,7 +110,7 @@ class BackupController extends ApiControllerBase
|
||||
}
|
||||
// sort newest first
|
||||
usort($result['items'], function ($item1, $item2) {
|
||||
return $item1['time'] < $item2['time'];
|
||||
return ($item1['time'] < $item2['time']) ? 1 : -1;
|
||||
});
|
||||
}
|
||||
return $result;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user