From 0abc8ee5008158442b4940373845bf7ff4edc9f8 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 25 Jul 2015 19:50:02 +0200 Subject: [PATCH] testing something, do not explode --- _sakura/templates/yuuno/main/news.tpl | 6 +++--- main/news.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_sakura/templates/yuuno/main/news.tpl b/_sakura/templates/yuuno/main/news.tpl index 2c39aa1..be165c7 100644 --- a/_sakura/templates/yuuno/main/news.tpl +++ b/_sakura/templates/yuuno/main/news.tpl @@ -19,16 +19,16 @@ {% if newsPosts|length > 1 %} {% elseif newsPosts|length == 1 %}
diff --git a/main/news.php b/main/news.php index 65cb0c1..7085a24 100644 --- a/main/news.php +++ b/main/news.php @@ -28,7 +28,7 @@ $disqus_data = [ $renderData['newsPosts'] = Main::getNewsPosts((isset($_GET['id']) && !isset($_GET['xml']) && is_numeric($_GET['id'])) ? $_GET['id'] : null, (isset($_GET['id']) && !isset($_GET['xml']) && is_numeric($_GET['id']))); $renderData['page'] = [ 'title' => (isset($_GET['id']) ? (count($renderData['newsPosts']) ? $renderData['newsPosts'][0]['title'] : 'Post does not exist!') : 'Flashii News'), - 'disqus_sso' => ($disqus_user['password_algo'] == 'nologin' ? '{}' : (($disqus_message = base64_encode(json_encode($disqus_data))) .' '. Main::dsqHmacSha1($disqus_message .' '. time(), Configuration::getConfig('disqus_api_secret')) .' '. time())) + 'disqus_sso' => (($disqus_message = base64_encode(json_encode($disqus_data))) .' '. Main::dsqHmacSha1($disqus_message .' '. time(), Configuration::getConfig('disqus_api_secret')) .' '. time()) ]; // News XML feed