Index: branches/unlabeled/unlabeled-1.8.64/admin/import/import_funcs.php =================================================================== diff -u -r1153 -r4337 --- branches/unlabeled/unlabeled-1.8.64/admin/import/import_funcs.php (.../import_funcs.php) (revision 1153) +++ branches/unlabeled/unlabeled-1.8.64/admin/import/import_funcs.php (.../import_funcs.php) (revision 4337) @@ -122,6 +122,8 @@ // $NumCats = TableCount($objCatList->SourceTable,'',0); $dst_db->Execute('DROP TABLE IF EXISTS '.$ImportTable); $db->Close(); + + m_ParseEnv(); // sets default values to "m" prefix, because it is not passed through import anymore echo ''; } } Index: branches/unlabeled/unlabeled-1.3.2/kernel/units/general/helpers/multilanguage.php =================================================================== diff -u -r4278 -r4337 --- branches/unlabeled/unlabeled-1.3.2/kernel/units/general/helpers/multilanguage.php (.../multilanguage.php) (revision 4278) +++ branches/unlabeled/unlabeled-1.3.2/kernel/units/general/helpers/multilanguage.php (.../multilanguage.php) (revision 4337) @@ -79,9 +79,14 @@ * Creates missing multilanguage fields in table by specified prefix * * @param string $prefix + * @param bool $refresh Forces config field structure to be re-read from database */ - function createFields($prefix) + function createFields($prefix, $refresh = false) { + if ($refresh) { + $this->Application->HandleEvent( new kEvent($prefix.':OnCreateCustomFields') ); + } + $table_name = $this->Application->getUnitOption($prefix, 'TableName'); $this->curFields = $this->Application->getUnitOption($prefix, 'Fields'); Index: branches/unlabeled/unlabeled-1.3.2/core/units/general/helpers/multilanguage.php =================================================================== diff -u -r4278 -r4337 --- branches/unlabeled/unlabeled-1.3.2/core/units/general/helpers/multilanguage.php (.../multilanguage.php) (revision 4278) +++ branches/unlabeled/unlabeled-1.3.2/core/units/general/helpers/multilanguage.php (.../multilanguage.php) (revision 4337) @@ -79,9 +79,14 @@ * Creates missing multilanguage fields in table by specified prefix * * @param string $prefix + * @param bool $refresh Forces config field structure to be re-read from database */ - function createFields($prefix) + function createFields($prefix, $refresh = false) { + if ($refresh) { + $this->Application->HandleEvent( new kEvent($prefix.':OnCreateCustomFields') ); + } + $table_name = $this->Application->getUnitOption($prefix, 'TableName'); $this->curFields = $this->Application->getUnitOption($prefix, 'Fields');