Removed fitty.js, using manual font-size setting instead. Fixed valid/expired posts check.

This commit is contained in:
2017-09-16 13:06:44 +07:00
parent d06921fcc8
commit 6cb980051c
6 changed files with 83 additions and 66 deletions

View File

@@ -10,8 +10,8 @@ class Post extends \Core\Model
[
'id int(3) NOT NULL AUTO_INCREMENT',
'category int(3) NOT NULL',
'created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
'valid_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
'created_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
'valid_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
'expired_at timestamp NOT NULL',
'creator int(3) NOT NULL',
'edited_at timestamp',
@@ -92,6 +92,7 @@ class Post extends \Core\Model
}
}
$query = $db->prepare($sql);
if (count($conditions)) {