Fixed automatic post featuring

This commit is contained in:
Marcin Kurczewski 2014-03-03 19:22:29 +01:00
parent 2c73f60824
commit c633118774

View file

@ -42,7 +42,7 @@ class IndexController
//check if too old //check if too old
if (!$featuredPostId or $featuredPostDate + $featuredPostRotationTime < time()) if (!$featuredPostId or $featuredPostDate + $featuredPostRotationTime < time())
return $this->featureNewPost(); return PropertyModel::featureNewPost();
//check if post was deleted //check if post was deleted
$featuredPost = PostModel::findById($featuredPostId, false); $featuredPost = PostModel::findById($featuredPostId, false);