Skip to content

Commit

Permalink
fix bug in homelatest new in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadArifurRahman committed Jan 11, 2018
1 parent f4f3968 commit 5cc65e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion widgets/smartbloghomelatestnews/smartbloghomelatestnews.php
Expand Up @@ -27,7 +27,7 @@ public function install(){
if (!parent::install() || !$this->registerHook('displayHome'))
return false;
Configuration::updateValue('smartshowhomepost',4);
Configuration::updateGlobalValue('latestnews_sort_by', 'id_desc');
Configuration::updateGlobalValue('latestnews_sort_by', 'id_DESC');
return true;
}

Expand All @@ -49,6 +49,7 @@ public function smartbloghomelatestnewsHookDisplayHome($params)

if (!$this->isCached('smartblog_latest_news.tpl')) {
$view_data['posts'] = SmartBlogPost::GetPostLatestHome(Configuration::get('smartshowhomepost'));

$this->smarty->assign(array(
'smartbloglink' => $smartbloglink,
'view_data' => $view_data['posts']
Expand Down

0 comments on commit 5cc65e9

Please sign in to comment.