From 9c30e380d81789df990b8c58faccae5a5067a856 Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 23 Feb 2014 18:54:31 +0100 Subject: [PATCH] actually fix prevous commit --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];