Index: branches/5.3.x/core/install.php =================================================================== diff -u -N -r15677 -r15698 --- branches/5.3.x/core/install.php (.../install.php) (revision 15677) +++ branches/5.3.x/core/install.php (.../install.php) (revision 15698) @@ -1,6 +1,6 @@ GetVar('theme'); - $theme_table = $this->Application->getUnitOption('theme', 'TableName'); - $theme_idfield = $this->Application->getUnitOption('theme', 'IDField'); + $theme_config = $this->Application->getUnitConfig('theme'); + $theme_table = $theme_config->getTableName(); + $theme_id_field = $theme_config->getIDField(); $sql = 'UPDATE ' . $theme_table . ' SET Enabled = 1, PrimaryTheme = 1 - WHERE ' . $theme_idfield . ' = ' . $theme_id; + WHERE ' . $theme_id_field . ' = ' . $theme_id; $this->Conn->Query($sql); $this->toolkit->rebuildThemes(); // rescan theme to create structure after theme is enabled !!! @@ -936,7 +937,7 @@ if ($this->Application->GetVar('install_demo_data')) { $sql = 'SELECT Name FROM ' . $theme_table . ' - WHERE ' . $theme_idfield . ' = ' . $theme_id; + WHERE ' . $theme_id_field . ' = ' . $theme_id; $theme_name = $this->Conn->GetOne($sql); $site_path = $this->toolkit->getSystemConfig('Misc', 'WebsitePath') . '/';