1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +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()
{
global $NEWSSTYLE; // v1.x backward compatibility.
$this->addDebug("Method",'renderViewTemplate()');
if($newsCachedPage = $this->checkCache($this->cacheString))
@@ -1126,9 +1128,10 @@ class news_front
$param['current_action'] = $action;
$param['template_key'] = 'news/view';
if(vartrue($NEWSSTYLE))
if(!empty($NEWSSTYLE))
{
$template = $NEWSSTYLE;
}
elseif(function_exists("news_style")) // BC
{