Replace $parameters argument per method with static::$parameters
This commit is contained in:
@@ -30,11 +30,11 @@ use Friendica\Util\Strings;
|
||||
|
||||
class Details extends BaseAdmin
|
||||
{
|
||||
public static function content(array $parameters = [])
|
||||
public static function content()
|
||||
{
|
||||
parent::content($parameters);
|
||||
parent::content();
|
||||
|
||||
$theme = Strings::sanitizeFilePathItem($parameters['theme']);
|
||||
$theme = Strings::sanitizeFilePathItem(static::$parameters['theme']);
|
||||
if (!is_dir("view/theme/$theme")) {
|
||||
notice(DI::l10n()->t("Item not found."));
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user