]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Theme.php
We now offer an endpoint for featured posts
[friendica.git] / src / Module / Theme.php
index 1282fc783f47e8161f18180d2c82ab66b597826d..66c9d06f076bad857b4a3279bb16e708cd961478 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @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";