Index: branches/unlabeled/unlabeled-1.147.2/core/kernel/application.php =================================================================== diff -u -r4905 -r4967 --- branches/unlabeled/unlabeled-1.147.2/core/kernel/application.php (.../application.php) (revision 4905) +++ branches/unlabeled/unlabeled-1.147.2/core/kernel/application.php (.../application.php) (revision 4967) @@ -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()