Pass mtime to menu resolving method results
This commit is contained in:
parent
f351697c48
commit
b6ec6ccf2c
|
|
@ -104,7 +104,7 @@ class Page extends CmsCompoundObject
|
||||||
public static function url($page, $params = [], $absolute = true)
|
public static function url($page, $params = [], $absolute = true)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Reuse existing controller or create a new one,
|
* Reuse existing controller or create a new one,
|
||||||
* assuming that the method is called not during the front-end
|
* assuming that the method is called not during the front-end
|
||||||
* request processing.
|
* request processing.
|
||||||
*/
|
*/
|
||||||
|
|
@ -181,11 +181,13 @@ class Page extends CmsCompoundObject
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$page = self::loadCached($theme, $item->reference);
|
||||||
$pageUrl = self::url($item->reference);
|
$pageUrl = self::url($item->reference);
|
||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
$result['url'] = $pageUrl;
|
$result['url'] = $pageUrl;
|
||||||
$result['isActive'] = $pageUrl == $url;
|
$result['isActive'] = $pageUrl == $url;
|
||||||
|
$result['mtime'] = $page ? $page->mtime : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue