Index: trunk/core/units/languages/import_xml.php =================================================================== diff -u -N -r3061 -r3145 --- trunk/core/units/languages/import_xml.php (.../import_xml.php) (revision 3061) +++ trunk/core/units/languages/import_xml.php (.../import_xml.php) (revision 3145) @@ -122,8 +122,11 @@ function Parse($filename, $phrase_types, $module_ids, $import_mode = LANG_SKIP_EXISTING) { // define the XML parsing routines/functions to call based on the handler path - if( !file_exists($filename) ) return false; + if( !file_exists($filename) || !$phrase_types /*|| !$module_ids*/ ) return false; + $phrase_types = explode('|', substr($phrase_types, 1, -1) ); +// $module_ids = explode('|', substr($module_ids, 1, -1) ); + $this->phrase_types_allowed = array_flip($phrase_types); $this->import_mode = $import_mode; @@ -303,6 +306,9 @@ $fp = fopen($filename,'w'); if(!$fp || !$phrase_types || !$module_ids || !$language_ids) return false; + $phrase_types = explode('|', substr($phrase_types, 1, -1) ); + $module_ids = explode('|', substr($module_ids, 1, -1) ); + $this->events_hash = array_flip($this->events_hash); $lang_table = $this->Application->getUnitOption('lang','TableName');