summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-02 14:58:11 -0700
committerBrion Vibber <brion@pobox.com>2010-09-02 14:58:11 -0700
commite365e709c5bab7d593ee1cde26c8bcfdddcc6780 (patch)
treeac221d247a1bc67b660f06df546bc4bbcc8653b5 /lib/action.php
parent925381707b921315ba76418ed0d1dd50f9548e80 (diff)
parentcbcb9b0080d262a042adedaf632300e86a57e980 (diff)
Merge branch 'master' into testing
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/action.php b/lib/action.php
index 1d85f19e9..c86dd2d86 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -203,7 +203,7 @@ class Action extends HTMLOutputter // lawsuit
if (Event::handle('StartShowStatusNetStyles', array($this)) &&
Event::handle('StartShowLaconicaStyles', array($this))) {
- $this->cssLink('css/display.css',null, 'screen, projection, tv, print');
+ $this->primaryCssLink(null, 'screen, projection, tv, print');
Event::handle('EndShowStatusNetStyles', array($this));
Event::handle('EndShowLaconicaStyles', array($this));
}
@@ -251,6 +251,18 @@ class Action extends HTMLOutputter // lawsuit
}
}
+ function primaryCssLink($mainTheme=null, $media=null)
+ {
+ // If the currently-selected theme has dependencies on other themes,
+ // we'll need to load their display.css files as well in order.
+ $theme = new Theme($mainTheme);
+ $baseThemes = $theme->getDeps();
+ foreach ($baseThemes as $baseTheme) {
+ $this->cssLink('css/display.css', $baseTheme, $media);
+ }
+ $this->cssLink('css/display.css', $mainTheme, $media);
+ }
+
/**
* Show javascript headers
*