]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile/Schedule.php
Merge pull request #11452 from atjn/manifest-icons
[friendica.git] / src / Module / Profile / Schedule.php
index eaeeb85406ec70b7d70603aaad4c09e900a0e57c..cac77c9c769ed82da5d3b1794d03cc88a1a2f527 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
  *
@@ -33,7 +33,7 @@ use Friendica\Util\DateTimeFormat;
 
 class Schedule extends BaseProfile
 {
-       public static function post()
+       protected function post(array $request = [])
        {
                if (!local_user()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
@@ -50,7 +50,7 @@ class Schedule extends BaseProfile
                Post\Delayed::deleteById($_REQUEST['delete']);
        }
 
-       public static function content()
+       protected function content(array $request = []): string
        {
                if (!local_user()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
@@ -80,7 +80,7 @@ class Schedule extends BaseProfile
                        '$form_security_token' => BaseModule::getFormSecurityToken("profile_schedule"),
                        '$baseurl'             => DI::baseUrl()->get(true),
                        '$title'               => DI::l10n()->t('Scheduled Posts'),
-                       '$nickname'            => static::$parameters['nickname'] ?? '',
+                       '$nickname'            => $this->parameters['nickname'] ?? '',
                        '$scheduled_at'        => DI::l10n()->t('Scheduled'),
                        '$content'             => DI::l10n()->t('Content'),
                        '$delete'              => DI::l10n()->t('Remove post'),