From f508db9e4c249711c573c56efd0e3abbdb072780 Mon Sep 17 00:00:00 2001 From: 8chan Admin Date: Sun, 27 Oct 2013 15:12:21 +0000 Subject: [PATCH] Fix custom stylesheets & fix bug where couldn't post if previously banned --- inc/bans.php | 2 +- templates/index.html | 2 +- templates/main.js | 47 ++++++++++++++++++++++--------------------- templates/thread.html | 2 +- 4 files changed, 27 insertions(+), 26 deletions(-) diff --git a/inc/bans.php b/inc/bans.php index fbf341c6..69861353 100644 --- a/inc/bans.php +++ b/inc/bans.php @@ -198,7 +198,7 @@ class Bans { return false; } - if ($mod['boards'][0] != '*' && !in_array($ban['board'], $mod['boards'])) + if ($mod && $mod['boards'][0] != '*' && !in_array($ban['board'], $mod['boards'])) error($config['error']['noaccess']); if ($modlog) { diff --git a/templates/index.html b/templates/index.html index b6fef53e..25e5f3cd 100644 --- a/templates/index.html +++ b/templates/index.html @@ -64,7 +64,7 @@ {% endraw %} {% for name, uri in config.stylesheets %}{% raw %}'{% endraw %}{{ name|addslashes }}{% raw %}' : '{% endraw %}/stylesheets/{{ uri|addslashes }}{% raw %}', {% endraw %}{% endfor %}{% raw %} - }; + }; onready(init); {% endraw %}