summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-12-29 12:02:04 +0100
committerAleksander Machniak <alec@alec.pl>2013-12-29 12:02:04 +0100
commit14ace838c14c798f15d66f8a3ceb5d25882f8367 (patch)
tree3b20c145c51d4f45ad79c482f9e8a6bf852aa93a /plugins
parent10936fef6496aaa3c10be3f450d6046368d8794f (diff)
Fix references to 'default' skin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/enigma/lib/enigma_ui.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/enigma/lib/enigma_ui.php b/plugins/enigma/lib/enigma_ui.php
index adb619d0c..188987bf6 100644
--- a/plugins/enigma/lib/enigma_ui.php
+++ b/plugins/enigma/lib/enigma_ui.php
@@ -91,7 +91,7 @@ class enigma_ui
'searchform' => array($this->rc->output, 'search_form'),
));
$this->rc->output->set_pagetitle($this->enigma->gettext('enigmakeys'));
- $this->rc->output->send('enigma.keys');
+ $this->rc->output->send('enigma.keys');
}
}
}
@@ -104,11 +104,11 @@ class enigma_ui
if ($this->css_loaded)
return;
- $skin = $this->rc->config->get('skin');
- if (!file_exists($this->home . "/skins/$skin/enigma.css"))
- $skin = 'default';
+ $skin_path = $this->local_skin_path();
+ if (is_file($this->home . "/$skin_path/enigma.css")) {
+ $this->enigma->include_stylesheet("$skin_path/enigma.css");
+ }
- $this->enigma->include_stylesheet("skins/$skin/enigma.css");
$this->css_added = true;
}
@@ -415,8 +415,8 @@ class enigma_ui
// @TODO: make this work with non-default skins
$this->enigma->add_button(array(
'name' => 'enigmamenu',
- 'imagepas' => 'skins/default/enigma.png',
- 'imageact' => 'skins/default/enigma.png',
+ 'imagepas' => 'skins/classic/enigma.png',
+ 'imageact' => 'skins/classic/enigma.png',
'onclick' => "rcmail_ui.show_popup('enigmamenu', true); return false",
'title' => 'securityoptions',
'domain' => 'enigma',