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:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user