]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/Localtime.php
Merge branch 'develop' into blocks-and-mutes-fixes
[friendica.git] / src / Module / Debug / Localtime.php
index ff1466408e922152f0dfb481aa092c88938153d2..1d5d966ad5ceb7069c20cae7ea3fb293dc8c239c 100644 (file)
@@ -1,6 +1,6 @@
 <?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
  *
@@ -31,7 +31,7 @@ class Localtime extends BaseModule
 {
        static $mod_localtime = '';
 
-       public static function post(array $parameters = [])
+       protected function post(array $request = [])
        {
                $time = ($_REQUEST['time'] ?? '') ?: 'now';
 
@@ -42,7 +42,7 @@ class Localtime extends BaseModule
                }
        }
 
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
                $time = ($_REQUEST['time'] ?? '') ?: 'now';
 
@@ -58,7 +58,7 @@ class Localtime extends BaseModule
                        $output .= '<p>' . DI::l10n()->t('Converted localtime: %s', self::$mod_localtime) . '</p>';
                }
 
-               $output .= '<form action ="' . DI::baseUrl()->get() . '/localtime?time=' . $time . '" method="post" >';
+               $output .= '<form action ="localtime?time=' . $time . '" method="post">';
                $output .= '<p>' . DI::l10n()->t('Please select your timezone:') . '</p>';
                $output .= Temporal::getTimezoneSelect(($_REQUEST['timezone'] ?? '') ?: Installer::DEFAULT_TZ);
                $output .= '<input type="submit" name="submit" value="' . DI::l10n()->t('Submit') . '" /></form>';