BUG 6945 "Country in Language code causes Javascript error and causes..." SOLVED

The html tags on xml label section was causing the problem, but it is fixed now (import fix)
This commit is contained in:
Erik Amaru Ortiz
2011-05-27 10:54:07 -04:00
parent f83fef3f7a
commit 6c4c016f4f

View File

@@ -228,15 +228,11 @@ class Language extends BaseLanguage {
//erik: expresion to prevent and hable correctly dropdown values like -1, -2 etc.
preg_match('/^([\w_]+)\s-\s([\w_]+)\s*-*\s*([\w\W]*)$/', $reference, $match);
if( ! file_exists(PATH_XMLFORM . $xmlForm) ) {
echo 'file doesn\'t exist: ' . PATH_XMLFORM . $xmlForm;
$errorMsg .= 'file doesn\'t exist: ' . PATH_XMLFORM . $xmlForm . "\n";
continue;
}
G::LoadSystem('dynaformhandler');
$dynaform = new dynaFormHandler(PATH_XMLFORM . $xmlForm);
$fieldName = $match[2];