]> git.mxchange.org Git - friendica.git/blobdiff - mod/help.php
Review updates
[friendica.git] / mod / help.php
index 95fe91c38bc89735e14ae29bf5d139025d949ede..65221165fdd5d23e6c14645fa3ad13f447e2e27a 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
 use Friendica\App;
-
-require_once('library/markdown.php');
+use Friendica\Content\Text\Markdown;
+use Friendica\Core\System;
 
 if (!function_exists('load_doc_file')) {
 
@@ -49,7 +49,7 @@ function help_content(App $a) {
                $filename = "Home";
                $a->page['title'] = t('Help');
        } else {
-               $a->page['aside'] = Markdown($home, false);
+               $a->page['aside'] = Markdown::convert($home, false);
        }
 
        if (!strlen($text)) {
@@ -60,7 +60,7 @@ function help_content(App $a) {
                                ));
        }
 
-       $html = Markdown($text, false);
+       $html = Markdown::convert($text, false);
 
        if ($filename !== "Home") {
                // create TOC but not for home
@@ -80,7 +80,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;