mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
BC news style fix for some v1.x themes
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user