1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-17 18:36:39 +02:00

Content: issue with page template field - fixed

This commit is contained in:
Awilum
2018-12-11 20:46:25 +03:00
parent cb0a10fa63
commit be0817b02f

View File

@@ -363,6 +363,9 @@ class Content
$url = rtrim($url, '/');
$_page['slug'] = str_replace(Http::getBaseUrl(), '', $url);
// Create page template item
$_page['template'] = $_page['template'] ?? 'default';
// Create page date item
$_page['date'] = $_page['date'] ?? date(Registry::get('settings.date_format'), filemtime($file_path));