From be71965cb6a6283774bb7ec5f9fae6cfe8690563 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 30 Apr 2019 11:09:48 -0700 Subject: [PATCH] BC news style fix for some v1.x themes --- e107_plugins/news/news.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e107_plugins/news/news.php b/e107_plugins/news/news.php index 2c2ae29e7..d4d1200f8 100644 --- a/e107_plugins/news/news.php +++ b/e107_plugins/news/news.php @@ -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 {