1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

fix for editor highlighting

This commit is contained in:
czaks 2016-05-05 08:40:13 +02:00
parent 295f597699
commit 36b78e5f98

View File

@ -138,7 +138,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];