From bdbd215aad8ef932a9868bde87ea9f8c6fdb922a Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 13 Sep 2017 15:53:56 +0200 Subject: [PATCH] * renamed some variable that caused problems with some templates --- system/pages/news.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/system/pages/news.php b/system/pages/news.php index 242a7275..61af0ba0 100644 --- a/system/pages/news.php +++ b/system/pages/news.php @@ -43,20 +43,20 @@ if(isset($_GET['archive'])) $author = $query['name']; } - $content = $news['body']; + $content_ = $news['body']; $firstLetter = ''; - if($content[0] != '<') + if($content_[0] != '<') { - $tmp = $template_path.'/images/letters/' . $content[0] . '.gif'; + $tmp = $template_path.'/images/letters/' . $content_[0] . '.gif'; if(file_exists($tmp)) { - $firstLetter = '' . $content[0] . ''; - $content = $firstLetter . substr($content, 1); + $firstLetter = '' . $content_[0] . ''; + $content_ = $firstLetter . substr($content_, 1); } } echo $twig->render('news.html.twig', array( 'title' => stripslashes($news['title']), - 'content' => $content, + 'content' => $content_, 'date' => $news['date'], 'icon' => $categories[$news['category']]['icon_id'], 'author' => $config['news_author'] ? $author : '', @@ -332,20 +332,20 @@ if(!$news_cached) '; } - $content = $news['body']; + $content_ = $news['body']; $firstLetter = ''; - if($content[0] != '<') + if($content_[0] != '<') { - $tmp = $template_path.'/images/letters/' . $content[0] . '.gif'; + $tmp = $template_path.'/images/letters/' . $content_[0] . '.gif'; if(file_exists($tmp)) { - $firstLetter = '' . $content[0] . ''; - $content = $firstLetter . substr($content, 1); + $firstLetter = '' . $content_[0] . ''; + $content_ = $firstLetter . substr($content_, 1); } } echo $twig->render('news.html.twig', array( 'title' => stripslashes($news['title']), - 'content' => $content . $admin_options, + 'content' => $content_ . $admin_options, 'date' => $news['date'], 'icon' => $categories[$news['category']]['icon_id'], 'author' => $config['news_author'] ? $author : '',