From 93e64008a674afbad215c1d42bf5fa758a5c1a5e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Wed, 05 Aug 2015 03:30:51 -0400 Subject: [PATCH] Small code improvements --- program/include/rcmail_output_html.php | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index 26bb91d..464008c 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -262,11 +262,14 @@ $meta = @file_get_contents(RCUBE_INSTALL_PATH . $skin_path . '/meta.json'); $meta = @json_decode($meta, true); - $meta['path'] = $skin_path; - $skin_id = end(explode('/', $skin_path)); + $meta['path'] = $skin_path; + $path_elements = explode('/', $skin_path); + $skin_id = end($path_elements); + if (!$meta['name']) { $meta['name'] = $skin_id; } + $this->skins[$skin_id] = $meta; if ($meta['extends']) { @@ -956,7 +959,7 @@ "rcube_utils::get_input_value('\\1', rcube_utils::INPUT_GPC)", "\$_COOKIE['\\1']", "\$browser->{'\\1'}", - $this->template_name, + "'" . $this->template_name . "'", ), $expression ); -- Gitblit v1.9.1