Index: branches/5.3.x/core/units/helpers/template_helper.php =================================================================== diff -u -r15483 -r15698 --- branches/5.3.x/core/units/helpers/template_helper.php (.../template_helper.php) (revision 15483) +++ branches/5.3.x/core/units/helpers/template_helper.php (.../template_helper.php) (revision 15698) @@ -1,6 +1,6 @@ Application->getUnitConfig('theme'); $theme_id = (int)$this->Application->GetVar('theme_id'); $sql = 'SELECT Name - FROM ' . $this->Application->getUnitOption('theme', 'TableName') . ' - WHERE ' . $this->Application->getUnitOption('theme', 'IDField') . ' = ' . $theme_id; + FROM ' . $config->getTableName() . ' + WHERE ' . $config->getIDField() . ' = ' . $theme_id; + return $this->Conn->GetOne($sql); }