actually fix prevous commit
This commit is contained in:
parent
0354b9a5e3
commit
9c30e380d8
@ -100,7 +100,7 @@ function loadConfig() {
|
|||||||
$configstr .= file_get_contents($board['dir'] . '/config.php');
|
$configstr .= file_get_contents($board['dir'] . '/config.php');
|
||||||
}
|
}
|
||||||
$matches = array();
|
$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]) {
|
if ($matches && isset ($matches[2]) && $matches[2]) {
|
||||||
$matches = $matches[2];
|
$matches = $matches[2];
|
||||||
$config['locale'] = $matches[count($matches)-1];
|
$config['locale'] = $matches[count($matches)-1];
|
||||||
|
Loading…
Reference in New Issue
Block a user