diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-05-01 09:05:29 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-05-01 09:05:29 +0200 |
commit | b0ce5c62aff3c99e4e0bf09eae9a933f57b1f103 (patch) | |
tree | 28462ff56117b09f468a8cecd4a14cb107610778 /program/include | |
parent | efdbf4a7d9283129f46fc6d1a667588e6bda9805 (diff) |
Make skin meta/hierarchy information accessible for plugins (#1488831)
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcmail_output_html.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index eb4a52d04..1b836ab7d 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -5,7 +5,7 @@ | program/include/rcmail_output_html.php | | | | This file is part of the Roundcube Webmail client | - | Copyright (C) 2006-2013, The Roundcube Dev Team | + | Copyright (C) 2006-2014, The Roundcube Dev Team | | | | Licensed under the GNU General Public License version 3 or | | any later version with exceptions for skins & plugins. | @@ -209,6 +209,14 @@ EOF; // read meta file and check for dependecies $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)); + if (!$meta['name']) { + $meta['name'] = $skin_id; + } + $this->skins[$skin_id] = $meta; + if ($meta['extends']) { $path = RCUBE_INSTALL_PATH . 'skins/'; if (is_dir($path . $meta['extends']) && is_readable($path . $meta['extends'])) { |