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:
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user