minor fixes

This commit is contained in:
Diego Najar 2017-08-08 21:19:26 +02:00
parent 20da75fcf3
commit 3ae41bd710
3 changed files with 4 additions and 3 deletions

View File

@ -126,10 +126,9 @@ class dbPages extends dbJSON
$newKey = $this->generateKey($args['slug'], $args['parent'], false, $args['key']); $newKey = $this->generateKey($args['slug'], $args['parent'], false, $args['key']);
// If the page is draft then the created time is the current // If the page is draft then the created time is the current
if( $this->db[$args['key']]['status']=='draft' ) { if ($this->db[$args['key']]['status']=='draft') {
$args['date'] = Date::current(DB_DATE_FORMAT); $args['date'] = Date::current(DB_DATE_FORMAT);
} } elseif (!Valid::date($args['date'], DB_DATE_FORMAT)) {
else {
$args['date'] = $this->db[$args['key']]['date']; $args['date'] = $this->db[$args['key']]['date'];
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -5,6 +5,8 @@
echo Theme::headTitle(); echo Theme::headTitle();
echo Theme::headDescription(); echo Theme::headDescription();
echo Theme::favicon('favicon.png');
echo Theme::css(array( echo Theme::css(array(
'css/style.css', 'css/style.css',
'css/bludit.css' 'css/bludit.css'