Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2017-05-21 10:53:09 +0300
committerAleksander Machniak <alec@alec.pl>2017-05-21 10:53:58 +0300
commit0a8fe2ae5b97264e26a50021e3f3517310495c1e (patch)
tree9fdb56a84ecb700003e985fd88e116223ea4dc17 /plugins
parent3b36ea8529ef06197dcdbfe7e427a96371517539 (diff)
Enigma: Fix compatibility with assets_dir
Diffstat (limited to 'plugins')
-rw-r--r--plugins/enigma/lib/enigma_ui.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/enigma/lib/enigma_ui.php b/plugins/enigma/lib/enigma_ui.php
index a5f8b1488..ba0acd436 100644
--- a/plugins/enigma/lib/enigma_ui.php
+++ b/plugins/enigma/lib/enigma_ui.php
@@ -116,14 +116,12 @@ class enigma_ui
*/
function add_css()
{
- if ($this->css_loaded)
+ if ($this->css_loaded) {
return;
-
- $skin_path = $this->enigma->local_skin_path();
- if (is_file($this->home . "/$skin_path/enigma.css")) {
- $this->enigma->include_stylesheet("$skin_path/enigma.css");
}
+ $skin_path = $this->enigma->local_skin_path();
+ $this->enigma->include_stylesheet("$skin_path/enigma.css");
$this->css_loaded = true;
}