1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

BC news style fix for some v1.x themes

This commit is contained in:
Cameron
2019-04-30 11:09:48 -07:00
parent f8901ace65
commit be71965cb6

View File

@@ -1005,6 +1005,8 @@ class news_front
private function renderViewTemplate() private function renderViewTemplate()
{ {
global $NEWSSTYLE; // v1.x backward compatibility.
$this->addDebug("Method",'renderViewTemplate()'); $this->addDebug("Method",'renderViewTemplate()');
if($newsCachedPage = $this->checkCache($this->cacheString)) if($newsCachedPage = $this->checkCache($this->cacheString))
@@ -1126,9 +1128,10 @@ class news_front
$param['current_action'] = $action; $param['current_action'] = $action;
$param['template_key'] = 'news/view'; $param['template_key'] = 'news/view';
if(vartrue($NEWSSTYLE)) if(!empty($NEWSSTYLE))
{ {
$template = $NEWSSTYLE; $template = $NEWSSTYLE;
} }
elseif(function_exists("news_style")) // BC elseif(function_exists("news_style")) // BC
{ {