]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Theme.php
Merge pull request #11360 from annando/announce-notification
[friendica.git] / src / Module / Theme.php
index 63004c9280af062799e7c4d27f38acc01ca0cb58..66c9d06f076bad857b4a3279bb16e708cd961478 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -30,11 +30,11 @@ use Friendica\Util\Strings;
  */
 class Theme extends BaseModule
 {
-       public static function rawContent(array $parameters = [])
+       protected function rawContent(array $request = [])
        {
                header('Content-Type: text/css');
 
-               $theme = Strings::sanitizeFilePathItem($parameters['theme']);
+               $theme = Strings::sanitizeFilePathItem($this->parameters['theme']);
 
                if (file_exists("view/theme/$theme/theme.php")) {
                        require_once "view/theme/$theme/theme.php";