Fix for problem with lang names containing 8 Thanks Eloy

This commit is contained in:
moodler
2005-07-12 12:26:55 +00:00
parent 0ef1487687
commit bc6c0782e9
+1 -1
View File
@@ -85,7 +85,7 @@ function multilang_filter_impl($langblock) {
// Setup is done, now do multilang replacement on the match we 've been called for
$searchtosplit = '/<(?:lang|span) lang="([a-zA-Z_-]*)".*?>(.+?)<\/(?:lang|span)>/is';
$searchtosplit = '/<(?:lang|span) lang="([a-zA-Z_-8]*)".*?>(.+?)<\/(?:lang|span)>/is';
preg_match_all($searchtosplit, $langblock[0], $langlist);
/// Get the existing sections langs