Changeset View
Changeset View
Standalone View
Standalone View
core/install/install_toolkit.php
Show First 20 Lines • Show All 698 Lines • ▼ Show 20 Line(s) | |||||
foreach ($custom_fields as $cf_id => $cf_name) { | foreach ($custom_fields as $cf_id => $cf_name) { | ||||
$sql = 'UPDATE ' . TABLE_PREFIX . 'SearchConfig | $sql = 'UPDATE ' . TABLE_PREFIX . 'SearchConfig | ||||
SET CustomFieldId = ' . $cf_id . ' | SET CustomFieldId = ' . $cf_id . ' | ||||
WHERE (TableName = "CustomFields") AND (LOWER(ModuleName) = "' . $module_name . '") AND (FieldName = ' . $db->qstr($cf_name) . ')'; | WHERE (TableName = "CustomFields") AND (LOWER(ModuleName) = "' . $module_name . '") AND (FieldName = ' . $db->qstr($cf_name) . ')'; | ||||
$db->Query($sql); | $db->Query($sql); | ||||
} | } | ||||
$this->Application->refreshModuleInfo(); // this module configs are now processed | |||||
// because of configs was read only from installed before modules (in-portal), then reread configs | // because of configs was read only from installed before modules (in-portal), then reread configs | ||||
$this->Application->UnitConfigReader->scanModules(MODULES_PATH . DIRECTORY_SEPARATOR . $module_folder); | $this->Application->UnitConfigReader->scanModules(MODULES_PATH . DIRECTORY_SEPARATOR . $module_folder); | ||||
// create correct columns in CustomData table | // create correct columns in CustomData table | ||||
$ml_helper = $this->Application->recallObject('kMultiLanguageHelper'); | $ml_helper = $this->Application->recallObject('kMultiLanguageHelper'); | ||||
/* @var $ml_helper kMultiLanguageHelper */ | /* @var $ml_helper kMultiLanguageHelper */ | ||||
$ml_helper->createFields($prefix . '-cdata', true); | $ml_helper->createFields($prefix . '-cdata', true); | ||||
▲ Show 20 Lines • Show All 303 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
else { | else { | ||||
unset($compression_engines['yui']); | unset($compression_engines['yui']); | ||||
} | } | ||||
} | } | ||||
return $compression_engines; | return $compression_engines; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |