summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-05-05 08:40:13 +0200
committerczaks <marcin@6irc.net>2016-05-05 08:40:13 +0200
commit36b78e5f98302cb8fb3d4a00d4be61d6775d74a3 (patch)
tree9420425119664f6c7c7a11fdb5a1fca644b4cc35 /inc/functions.php
parent295f5976998d93e1a9e12c1a19b979fffd417242 (diff)
fix for editor highlighting
Diffstat (limited to 'inc/functions.php')
-rwxr-xr-xinc/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 3f5ed3b0..fd4c910d 100755
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -138,7 +138,7 @@ function loadConfig() {
$configstr .= file_get_contents($board['dir'] . '/config.php');
}
$matches = array();
- preg_match_all('/[^\/*#]\$config\s*\[\s*[\'"]locale[\'"]\s*\]\s*=\s*([\'"])(.*?)\1/', $configstr, $matches);
+ preg_match_all('/[^\/#*]\$config\s*\[\s*[\'"]locale[\'"]\s*\]\s*=\s*([\'"])(.*?)\1/', $configstr, $matches);
if ($matches && isset ($matches[2]) && $matches[2]) {
$matches = $matches[2];
$config['locale'] = $matches[count($matches)-1];