Fixed automatic post featuring
This commit is contained in:
parent
2c73f60824
commit
c633118774
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue