diff options
| author | czaks <marcin@6irc.net> | 2014-02-23 19:01:41 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-02-23 19:01:41 +0100 |
| commit | 58615845adcb69346ef8628928a989f31efbb54b (patch) | |
| tree | 9882a290df514b77e4d2620522764f9208aaf5da /inc/functions.php | |
| parent | 9c30e380d81789df990b8c58faccae5a5067a856 (diff) | |
allow basic commenting of locale string
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index b62b41da..5b5f5bdd 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]; |
