Index: trunk/core/kernel/application.php =================================================================== diff -u -N -r4903 -r4971 --- trunk/core/kernel/application.php (.../application.php) (revision 4903) +++ trunk/core/kernel/application.php (.../application.php) (revision 4971) @@ -341,7 +341,10 @@ */ function VerifyThemeId() { - if ($this->Application->IsAdmin()) return; + if ($this->Application->IsAdmin()) { + safeDefine('THEMES_PATH', '/kernel/admin_templates'); + return; + } $theme_id = $this->GetVar('m_theme'); if (!$theme_id) { @@ -356,6 +359,7 @@ if (!$theme->IsLoaded() || !$theme->GetDBField('Enabled')) { if (!defined('IS_INSTALL')) die('Unknown or disabled theme'); } + safeDefine('THEMES_PATH', '/themes/'.$theme->GetDBField('Name')); } function GetDefaultLanguageId()