summaryrefslogtreecommitdiff
path: root/plugins/legacy_browser/legacy_browser.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-18 18:54:29 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-18 18:54:29 +0200
commit241af0937c973fb8b541ed97ef8b194be4be7c00 (patch)
treebbfbc0bae4fd15a72f20cf29d96f70007dbe89de /plugins/legacy_browser/legacy_browser.php
parentca33f32b607966b9d774ae1c6261031056212a33 (diff)
Fix loading css for larry skin, support minified css files
Diffstat (limited to 'plugins/legacy_browser/legacy_browser.php')
-rw-r--r--plugins/legacy_browser/legacy_browser.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/legacy_browser/legacy_browser.php b/plugins/legacy_browser/legacy_browser.php
index bdf831e73..0dc0794f3 100644
--- a/plugins/legacy_browser/legacy_browser.php
+++ b/plugins/legacy_browser/legacy_browser.php
@@ -40,19 +40,20 @@ class legacy_browser extends rcube_plugin
$skin = $this->skin();
if ($skin == 'classic') {
+ $minified = file_exists(INSTALL_PATH . '/plugins/legacy_browser/skins/classic/iehacks.min.css') ? '.min' : '';
$rcube->output->add_header(
- '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/classic/iehacks.css" />'
+ '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/skins/classic/iehacks' . $minified . '.css" />'
);
}
else if ($skin == 'larry') {
+ $minified = file_exists(INSTALL_PATH . '/plugins/legacy_browser/skins/larry/iehacks.min.css') ? '.min' : '';
+ $rcube->output->add_header(
+ '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/skins/larry/iehacks' . $minified . '.css" />'
+ );
+
if ($rcube->output->browser->ver < 8) {
$rcube->output->add_header(
- '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/larry/ie7hacks.css" />'
- );
- }
- else {
- $rcube->output->add_header(
- '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/larry/iehacks.css" />'
+ '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/skins/larry/ie7hacks' . $minified . '.css" />'
);
}
}