summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-02-23 18:54:31 +0100
committerczaks <marcin@6irc.net>2014-02-23 18:54:31 +0100
commit9c30e380d81789df990b8c58faccae5a5067a856 (patch)
tree610ab0c1841e1d68b5cfc43ae2ca8b3f43d01ff8 /inc/functions.php
parent0354b9a5e37a63c4984c7e466e2099f7649a36d8 (diff)
actually fix prevous commit
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 7cae3266..b62b41da 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -100,7 +100,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];