diff --git a/includes/ckeditor.admin.inc b/includes/ckeditor.admin.inc
index 9a5a2fc..6c7408d 100644
--- a/includes/ckeditor.admin.inc
+++ b/includes/ckeditor.admin.inc
@@ -1056,6 +1056,9 @@ function ckeditor_admin_profile_form($form, $form_state, $profile = NULL) {
'#collapsible' => TRUE,
'#collapsed' => TRUE
);
+ global $theme;
+ $current_theme = variable_get('theme_default', $theme);
+ $theme_path = drupal_get_path('theme', $current_theme);
$form['css']['css_mode'] = array(
'#type' => 'select',
@@ -1094,7 +1097,7 @@ function ckeditor_admin_profile_form($form, $form_state, $profile = NULL) {
'!h' => '
%h
',
'!t' => '
%t
',
'!host' => '' . base_path() . '
',
- '!theme' => '' . base_path() . path_to_theme() . '/
'
+ '!theme' => '' . base_path() . $theme_path . '/
'
)
)
);
@@ -1112,7 +1115,7 @@ function ckeditor_admin_profile_form($form, $form_state, $profile = NULL) {
'Define the location of the !ckeditor_styles_js_file file. It is used by the Style drop-down list available in the default toolbar. Copy the !ckeditor_styles_js_path file into your theme directory (!theme) and adjust it to your needs.', array(
'!ckeditor_styles_js_file' => 'ckeditor.styles.js
',
'!ckeditor_styles_js_path' => '' . drupal_get_path('module', 'ckeditor') . '/ckeditor.styles.js
',
- '!theme' => '' . path_to_theme() . '/ckeditor.styles.js' . '
'
+ '!theme' => '' . $theme_path . '/ckeditor.styles.js' . '
'
)
)
);
@@ -1136,7 +1139,7 @@ function ckeditor_admin_profile_form($form, $form_state, $profile = NULL) {
'!t' => '
%t
',
'!m' => '
%m
',
'!host' => '' . base_path() . '
',
- '!theme' => '' . base_path() . path_to_theme() . '/
',
+ '!theme' => '' . base_path() . $theme_path . '/
',
'!module' => '' . drupal_get_path('module', 'ckeditor') . '
'
)
)