Index: branches/5.3.x/core/install/install_toolkit.php =================================================================== diff -u -N -r15677 -r15698 --- branches/5.3.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 15677) +++ branches/5.3.x/core/install/install_toolkit.php (.../install_toolkit.php) (revision 15698) @@ -1,6 +1,6 @@ rebuildThemes(); } - $id_field = $this->Application->getUnitOption('theme', 'IDField'); - $table_name = $this->Application->getUnitOption('theme', 'TableName'); + $theme_config = $this->Application->getUnitConfig('theme'); + $id_field = $theme_config->getIDField(); $sql = 'SELECT Name, ' . $id_field . ' - FROM ' . $table_name . ' + FROM ' . $theme_config->getTableName() . ' ORDER BY Name ASC'; + return $this->Conn->GetCol($sql, $id_field); } @@ -853,7 +854,7 @@ $sql = 'SELECT FieldName, CustomFieldId FROM ' . TABLE_PREFIX . 'CustomFields - WHERE Type = ' . $item_type . ' AND IsSystem = 0'; // config is not read here yet :( $this->Application->getUnitOption('p', 'ItemType'); + WHERE Type = ' . $item_type . ' AND IsSystem = 0'; // config is not read here yet :( $this->Application->getUnitConfig('p')->getItemType(); $custom_fields = $db->GetCol($sql, 'CustomFieldId'); foreach ($custom_fields as $cf_id => $cf_name) {