summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-rw-r--r--program/include/main.inc2
-rw-r--r--program/include/rcube_template.php8
2 files changed, 9 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 8b935c1f3..35c2df4c7 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1379,8 +1379,8 @@ function rcube_html_editor($mode='')
$RCMAIL->output->add_script(sprintf("rcmail_editor_init(%s)",
json_encode(array(
'mode' => $mode,
- 'skin_path' => '$__skin_path',
'lang' => $lang,
+ 'skin_path' => $RCMAIL->output->get_skin_path(),
'spellcheck' => intval($RCMAIL->config->get('enable_spellcheck')),
'spelldict' => intval($RCMAIL->config->get('spellcheck_dictionary')),
))), 'foot');
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index 0fbd9dfac..94fa6763c 100644
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -167,6 +167,14 @@ class rcube_template extends rcube_html_page
}
/**
+ * Getter for the current skin path property
+ */
+ public function get_skin_path()
+ {
+ return $this->config['skin_path'];
+ }
+
+ /**
* Check if a specific template exists
*
* @param string Template name