summaryrefslogtreecommitdiff
path: root/plugins/legacy_browser/legacy_browser.php
diff options
context:
space:
mode:
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" />'
);
}
}