forked from GNUsocial/gnu-social
		
	also hide your own design
This commit is contained in:
		| @@ -53,16 +53,21 @@ class CurrentUserDesignAction extends Action | ||||
|       * | ||||
|       * @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 | ||||
| @@ -84,5 +89,4 @@ class CurrentUserDesignAction extends Action | ||||
|         return $cur->getDesign(); | ||||
|     } | ||||
|  | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user