Index: branches/5.3.x/core/units/helpers/fck_helper.php =================================================================== diff -u -N -r15974 -r15999 --- branches/5.3.x/core/units/helpers/fck_helper.php (.../fck_helper.php) (revision 15974) +++ branches/5.3.x/core/units/helpers/fck_helper.php (.../fck_helper.php) (revision 15999) @@ -1,6 +1,6 @@ config = Array ( 'toolbar' => $toolbar, - 'baseHref' => $this->Application->BaseURL( rtrim(EDITOR_PATH, '/') ), + 'baseHref' => $this->Application->BaseURL() . trim(EDITOR_PATH, '/') . '/', 'customConfig' => $this->getJavaScriptConfig(), 'stylesSet' => 'portal:' . $styles_js, 'contentsCss' => $styles_css, @@ -523,18 +523,18 @@ */ protected function getStyles() { - $theme_path = $this->Application->GetFrontThemePath() . '/inc'; + $theme_path = ltrim($this->Application->GetFrontThemePath(), '/') . '/inc'; - if ( file_exists(FULL_PATH . $theme_path . '/style.css') ) { + if ( file_exists(FULL_PATH . '/' . $theme_path . '/style.css') ) { $url_params = Array ('events[fck]' => 'OnGetsEditorStyles', 'no_pass_through' => 1, 'pass' => 'm'); $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'; + $theme_path = trim(EDITOR_PATH, '/'); + $styles_css = $this->Application->BaseURL() . $theme_path . '/style.css'; } - $styles_js = $this->Application->BaseURL($theme_path) . 'styles.js'; + $styles_js = $this->Application->BaseURL() . $theme_path . '/styles.js'; return array($styles_css, $styles_js); }