Index: branches/5.2.x/core/kernel/db/db_tag_processor.php =================================================================== diff -u -N -r15958 -r16084 --- branches/5.2.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 15958) +++ branches/5.2.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 16084) @@ -1,6 +1,6 @@ Field($params); $name = array_key_exists('name', $params) ? $params['name'] : $this->InputName($params); - $theme_path = $this->Application->GetFrontThemePath() . '/inc'; + /** @var ThemeItem $theme */ + $theme = $this->Application->recallObject('theme.current'); + $stylesheet_file = $theme->getStylesheetFile(true); - if ( file_exists(FULL_PATH . $theme_path . '/style.css') ) { + if ( $stylesheet_file ) { + $stylesheet_folder_url = dirname($stylesheet_file) . '/'; + $url_params = Array ( 'events[fck]' => 'OnGetsEditorStyles', 'no_pass_through' => 1, 'pass' => 'm', 'no_amp' => 1 @@ -2545,11 +2549,11 @@ $styles_css = $this->Application->HREF('index', '_FRONT_END_', $url_params, 'index.php'); } else { - $theme_path = rtrim(EDITOR_PATH, '/'); - $styles_css = $this->Application->BaseURL($theme_path) . 'style.css'; + $stylesheet_folder_url = $this->Application->BaseURL(rtrim(EDITOR_PATH, '/')); + $styles_css = $stylesheet_folder_url . 'style.css'; } - $styles_js = $this->Application->BaseURL($theme_path) . 'styles.js'; + $styles_js = $stylesheet_folder_url . 'styles.js'; /*$page_id = $this->Application->GetVar('c_id'); $content_id = $this->Application->GetVar('content_id'); @@ -3156,4 +3160,4 @@ return ''; } -} \ No newline at end of file +}