diff options
author | Eric Helgeson <erichelgeson@gmail.com> | 2009-08-03 18:11:06 -0500 |
---|---|---|
committer | Eric Helgeson <erichelgeson@gmail.com> | 2009-08-03 18:11:06 -0500 |
commit | 0853ed069bb0b323d02cc8fe533ae82c87f68de5 (patch) | |
tree | 7ef1445197a5716d15a1ba40a1da6d6dc09b720f /lib/ownerdesignaction.php | |
parent | 9e611b40c643af9f40b9ef84e02b859205943745 (diff) | |
parent | ff6e976d0315c57fc5b7e31845e9a3bad4f095bc (diff) |
Merge commit 'origin/0.8.x' into 0.9.x
Diffstat (limited to 'lib/ownerdesignaction.php')
-rw-r--r-- | lib/ownerdesignaction.php | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/lib/ownerdesignaction.php b/lib/ownerdesignaction.php index 785b8a93d..b42df926d 100644 --- a/lib/ownerdesignaction.php +++ b/lib/ownerdesignaction.php @@ -53,26 +53,6 @@ class OwnerDesignAction extends Action { var $user = null; /** - * Show the owner'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 user attribute has been set, returns that user's @@ -83,10 +63,15 @@ class OwnerDesignAction extends Action { function getDesign() { - if (empty($this->user)) { - return null; + if (!empty($this->user)) { + + $design = $this->user->getDesign(); + + if (!empty($design)) { + return $design; + } } - return $this->user->getDesign(); + return parent::getDesign(); } } |