diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-08-03 22:47:57 +0000 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-08-03 22:47:57 +0000 |
commit | dccd4aa68d7ae449434c63380f21d8070913778f (patch) | |
tree | 1a25d40f20326047eb0776f910e155362e8e33cb /lib/ownerdesignaction.php | |
parent | 981fa1b33a8073bd0d53d8bee7dfccd171685e61 (diff) | |
parent | ff6e976d0315c57fc5b7e31845e9a3bad4f095bc (diff) |
Merge branch '0.8.x' into twitter-oauth
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(); } } |