<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Module;
use Friendica\BaseModule;
-use Friendica\DI;
+use Friendica\Core\System;
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";
if (file_exists("view/theme/$theme/style.php")) {
require_once "view/theme/$theme/style.php";
}
-
- exit();
+ System::exit();
}
}