summaryrefslogtreecommitdiff
path: root/lib/groupdesignaction.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-30 16:24:04 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-30 16:24:04 -0400
commitae81d361374641ce5cd73b353fae613711e145fe (patch)
treecb168e36ac830ee2e4dbe53b82633644e53adf05 /lib/groupdesignaction.php
parente9ac70bfa76bf17e60936cf59c4e0ef13efbda82 (diff)
Site-wide design configuration
I added some code so that the site-wide design can be set, using the configuration interface. I also moved the configuration option from $config['site']['design']['background'] to just $config['design']['background'], but the old syntax will still work.
Diffstat (limited to 'lib/groupdesignaction.php')
-rw-r--r--lib/groupdesignaction.php30
1 files changed, 6 insertions, 24 deletions
diff --git a/lib/groupdesignaction.php b/lib/groupdesignaction.php
index 58777c283..c7cdff1fe 100644
--- a/lib/groupdesignaction.php
+++ b/lib/groupdesignaction.php
@@ -50,26 +50,6 @@ class GroupDesignAction extends Action {
var $group = null;
/**
- * Show the groups's design stylesheet
- *
- * @return nothing
- */
- function showStylesheets()
- {
- parent::showStylesheets();
-
- $user = common_current_user();
-
- if (empty($user) || $user->viewdesigns) {
- $design = $this->getDesign();
-
- if (!empty($design)) {
- $design->showCSS($this);
- }
- }
- }
-
- /**
* A design for this action
*
* if the group attribute has been set, returns that group's
@@ -80,10 +60,12 @@ class GroupDesignAction extends Action {
function getDesign()
{
- if (empty($this->group)) {
- return null;
+ if (!empty($this->group)) {
+ $design = $this->group->getDesign();
+ if (!empty($design)) {
+ return $design;
+ }
}
-
- return $this->group->getDesign();
+ return parent::getDesign();
}
}