summaryrefslogtreecommitdiff
path: root/program/include/rcube_plugin.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-07-30 12:04:43 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-07-30 12:04:43 +0200
commit9f1652e29e2ed8be815cae4abf42bde989ffeb22 (patch)
tree96b88bdbc518fa5f47f333ffea486baffbb546aa /program/include/rcube_plugin.php
parentc40419bdfe866932fecf9fcb1f552312c669c228 (diff)
Adapt to new default skin folder namimg
Diffstat (limited to 'program/include/rcube_plugin.php')
-rw-r--r--program/include/rcube_plugin.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/program/include/rcube_plugin.php b/program/include/rcube_plugin.php
index b91355c98..b1ec32a8a 100644
--- a/program/include/rcube_plugin.php
+++ b/program/include/rcube_plugin.php
@@ -336,9 +336,12 @@ abstract class rcube_plugin
public function local_skin_path()
{
$rcmail = rcube::get_instance();
- $skin_path = 'skins/' . $rcmail->config->get('skin');
- if (!is_dir(realpath(slashify($this->home) . $skin_path)))
- $skin_path = 'skins/default';
+ foreach (array($rcmail->config->get('skin'),'default') as $skin) {
+ $skin_path = 'skins/' . $skin;
+ if (is_dir(realpath(slashify($this->home) . $skin_path)))
+ break;
+ }
+
return $skin_path;
}