summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-02 22:56:18 -0400
committerEvan Prodromou <evan@status.net>2010-09-02 22:56:18 -0400
commit6c14235d6c3359a6c9012ec49077f8defe117779 (patch)
treea2c9abccb56d4c017a49ac27634d075dd54d57be /lib/action.php
parent388495f6b1fe5de9af7fc6a01b12da1a5c36093e (diff)
parent1bfbe9badfbe3e79f82e7216d1401f05a2750677 (diff)
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
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 73d781590..a2638993f 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
*