X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgroupdesignaction.php;h=3eb3964e87fa393361b68dfc0f3ff72ffe354653;hb=1de7badd78bb3cddc99a6960ec6a395a191ce6be;hp=bc95921f1b156b1751b55fb060b7ea5930ea233e;hpb=6328add622641e5f5721cc34d27d4d872c86a561;p=quix0rs-gnu-social.git diff --git a/lib/groupdesignaction.php b/lib/groupdesignaction.php index bc95921f1b..3eb3964e87 100644 --- a/lib/groupdesignaction.php +++ b/lib/groupdesignaction.php @@ -1,6 +1,6 @@ . * * @category Action - * @package Laconica - * @author Zach Copley - * @copyright 2009 Control Yourself, Inc. + * @package StatusNet + * @author Zach Copley + * @copyright 2009 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ */ -if (!defined('LACONICA')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } /** * Base class for actions that use a group's design * - * Pages related to groups can be themed with a design. + * Pages related to groups can be themed with a design. * This superclass returns that design. * * @category Action - * @package Laconica - * @author Zach Copley + * @package StatusNet + * @author Zach Copley * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ * */ class GroupDesignAction extends Action { /** The group in question */ var $group = null; - - /** - * Show the groups's design stylesheet - * - * @return nothing - */ - function showStylesheets() - { - parent::showStylesheets(); - - $design = $this->getDesign(); - - if (!empty($design)) { - $design->showCSS($this); - } - } /** * A design for this action @@ -76,12 +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(); } - }