Commit 844e984d authored by Richard Mansfield's avatar Richard Mansfield

During sanitisation, remove files not in a lang/xx.utf8 directory

parent 6a445da3
......@@ -174,6 +174,10 @@ if (!empty($sourcefiles)) {
$langfile = substr($sourcefile, strlen($source) + 1);
if (!preg_match('/lang\/[a-z]{2}[a-zA-Z_]*\.utf8\//', $langfile)) {
continue;
}
$en_file = preg_replace('/lang\/[a-zA-Z_]+\.utf8\//', 'lang/en.utf8/', $langfile);
$en_file = $en_dir . '/' . $en_file;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment