diff --git a/controllers/d.blog.php b/controllers/d.blog.php index 5230edb..75cd8e6 100755 --- a/controllers/d.blog.php +++ b/controllers/d.blog.php @@ -120,8 +120,8 @@ switch ($controller->splitted_url[1]) { else { // Manage history of an article if($user->rankIsHigher("premium")) { - $blogArticles_history = new Kabano\BlogArticles(); - $blogArticles_history->getHistory($controller->splitted_url[1]); + $blogHistory = new Kabano\BlogArticles(); + $blogHistory->getHistory($controller->splitted_url[1]); } if (isset($controller->splitted_url[2]) && is_numeric($controller->splitted_url[2])) $blogArticle->checkPermalink($controller->splitted_url[1],$user->rankIsHigher("premium"),$controller->splitted_url[2]); diff --git a/views/d.blog.view.html b/views/d.blog.view.html index fd9ab51..b6173b9 100755 --- a/views/d.blog.view.html +++ b/views/d.blog.view.html @@ -9,18 +9,18 @@
is_archive=="t"||$blogArticle->is_public=="f"?'class="archive"':''?>>

name?>.

- rankIsHigher("premium")) { ?> + rankIsHigher('premium')) { ?> - + rankIsHigher("moderator") && isset($blogArticles_history_list)) { ?> + if ($user->rankIsHigher('moderator') && isset($blogHistory)) { ?> — rankIsHigher("moderator")) { ?>