]> git.mxchange.org Git - friendica.git/blobdiff - mod/help.php
Merge pull request #3991 from MrPetovan/bug/undefined-variables
[friendica.git] / mod / help.php
index 1d5c831ef45ba32dab6297d22fcac25e8d609207..9a4b275f956185f1890701b9329c2cb167fa209a 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\System;
 
 require_once('library/markdown.php');
 
@@ -49,7 +50,7 @@ function help_content(App $a) {
                $filename = "Home";
                $a->page['title'] = t('Help');
        } else {
-               $a->page['aside'] = Markdown($home);
+               $a->page['aside'] = Markdown($home, false);
        }
 
        if (!strlen($text)) {
@@ -60,7 +61,7 @@ function help_content(App $a) {
                                ));
        }
 
-       $html = Markdown($text);
+       $html = Markdown($text, false);
 
        if ($filename !== "Home") {
                // create TOC but not for home
@@ -80,7 +81,7 @@ function help_content(App $a) {
                                        if ($level>$lastlevel) $toc.="<ul>";
                                        $idnum[$level]++;
                                        $id = implode("_", array_slice($idnum,1,$level));
-                                       $href = App::get_baseurl()."/help/{$filename}#{$id}";
+                                       $href = System::baseUrl()."/help/{$filename}#{$id}";
                                        $toc .= "<li><a href='{$href}'>".strip_tags($line)."</a></li>";
                                        $line = "<a name='{$id}'></a>".$line;
                                        $lastlevel = $level;