Fix no board_name on catalog causing weird bugs with filter/other problems

This commit is contained in:
8chan 2015-04-21 07:11:00 -07:00
parent 2a45e5f684
commit a4312e7d16
4 changed files with 9 additions and 7 deletions

View File

@ -13,7 +13,6 @@
var inMod = {% if mod %}true{% else %}false{% endif %}; var inMod = {% if mod %}true{% else %}false{% endif %};
var modRoot="{{ config.root }}"+(inMod ? "mod.php?/" : ""); var modRoot="{{ config.root }}"+(inMod ? "mod.php?/" : "");
var max_images={{ config.max_images }}; var max_images={{ config.max_images }};
var board_name="{{ board.uri }}";
{% raw %} {% raw %}
var styles = { var styles = {
{% endraw %} {% endraw %}

View File

@ -9,6 +9,7 @@
{% else %} {% else %}
var active_page = "ukko"; var active_page = "ukko";
{% endif %} {% endif %}
var board_name="{{ board.uri }}";
</script> </script>
{% include 'header.html' %} {% include 'header.html' %}

View File

@ -5,6 +5,7 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<script type='text/javascript'> <script type='text/javascript'>
active_page = "catalog"; active_page = "catalog";
board_name = "{{ board }}";
</script> </script>
{% include 'header.html' %} {% include 'header.html' %}
<title>{{ board }} - Catalog</title> <title>{{ board }} - Catalog</title>

View File

@ -5,6 +5,7 @@
<script type="text/javascript"> <script type="text/javascript">
var active_page = "thread"; var active_page = "thread";
var board_name="{{ board.uri }}";
</script> </script>
{% include 'header.html' %} {% include 'header.html' %}