From 3b34c345d8762d20c57fe6f326a1be166ede6143 Mon Sep 17 00:00:00 2001 From: 8chan Date: Thu, 5 Jun 2014 14:35:51 +0000 Subject: [PATCH] Fix board stylesheets not being respected on +50 --- inc/instance-config.php | 2 +- templates/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/instance-config.php b/inc/instance-config.php index ee281cc4..e8c3d4f3 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -242,7 +242,7 @@ OEKAKI; $_POST['max_images'] = (int)$_POST['max_images']; $multiimage = "\$config['max_images'] = {$_POST['max_images']}; \$config['file_script'] = '$b/main.js'; - \$config['additional_javascripts'][] = 'js/multi-image.js';"; + \$config['additional_javascript'][] = 'js/multi-image.js';"; } else { $multiimage = ''; } diff --git a/templates/main.js b/templates/main.js index 47c65d09..84603bba 100644 --- a/templates/main.js +++ b/templates/main.js @@ -76,7 +76,7 @@ function changeStyle(styleName, link) { {% endraw %} function init_stylechooser() { - var matches = document.URL.match(/\/(\w+)\/($|{{ config.dir.res|replace({'/': '\\/'}) }}{{ config.file_page|replace({'%d': '\\d+', '.': '\\.'}) }}|{{ config.file_index|replace({'.': '\\.'}) }}|{{ config.file_page|replace({'%d': '\\d+', '.': '\\.'}) }})/); + var matches = document.URL.match(/\/(\w+)\/($|{{ config.dir.res|replace({'/': '\\/'}) }}{{ config.file_page|replace({'%d': '\\d+', '.': '\\.'}) }}|{{ config.file_index|replace({'.': '\\.'}) }}|{{ config.dir.res|replace({'/': '\\/'}) }}{{ config.file_page50|replace({'+': '\\+', '%d': '\\d+', '.': '\\.'}) }})/); var newElement = document.createElement('div'); newElement.className = 'styles';