]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/ownerdesignaction.php
Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
[quix0rs-gnu-social.git] / lib / ownerdesignaction.php
index c47633bdb23fd101ff39afc035f101ee03c95cd9..785b8a93d3aad2a0a3962e324516d9d7ef726d1e 100644 (file)
@@ -52,6 +52,26 @@ 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
      *