]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Help.php
Changes:
[friendica.git] / src / Module / Help.php
index d0b61c2211c9f9ddee5a87ad6b04a3e94ccec8f2..e2db79e1f62a8c490d8054d2f696d2c7335611ab 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -32,7 +32,7 @@ use Friendica\Network\HTTPException;
  */
 class Help extends BaseModule
 {
-       public function content(): string
+       protected function content(array $request = []): string
        {
                Nav::setSelected('help');
 
@@ -102,7 +102,7 @@ class Help extends BaseModule
 
                                        $idNum[$level] ++;
 
-                                       $href = DI::baseUrl()->get() . "/help/{$filename}#{$anchor}";
+                                       $href = "help/{$filename}#{$anchor}";
                                        $toc .= "<li><a href=\"{$href}\">" . strip_tags($line) . "</a></li>";
                                        $id = implode("_", array_slice($idNum, 1, $level));
                                        $line = "<a name=\"{$id}\"></a>" . $line;