summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-03-24 11:52:55 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-03-24 12:04:04 +0100
commit551ebd46de00742a5c88b229fe72c7112652a626 (patch)
treebb0ad4ef4de2e33b5b1b97ae034c160b1a13e5b0 /program/include
parente5a3e61052aaeebf9c58ae501aaf0d046a270371 (diff)
Ensure backwards compatibility by considering old-style skin_path attribute for <roundcube:include ...> tags
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail_output_html.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php
index ec32c11a7..e96726236 100644
--- a/program/include/rcmail_output_html.php
+++ b/program/include/rcmail_output_html.php
@@ -873,6 +873,7 @@ class rcmail_output_html extends rcmail_output
// include a file
case 'include':
$old_base_path = $this->base_path;
+ if (!empty($attrib['skin_path'])) $attrib['skinpath'] = $attrib['skin_path'];
if ($path = $this->get_skin_file($attrib['file'], $skin_path, $attrib['skinpath'])) {
$this->base_path = preg_replace('!plugins/\w+/!', '', $skin_path); // set base_path to core skin directory (not plugin's skin)
$path = realpath($path);