X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fhelp.php;h=72225692793d5206d412d9e2a671f63ded4ab762;hb=09931b71247c2261371a5a40b38a2127f79f344d;hp=974577876d4c4dc4709ca984f0bcf84934e0b270;hpb=038611bcb46c607851e04dcde813be012db5efb7;p=friendica.git diff --git a/mod/help.php b/mod/help.php index 974577876d..7222569279 100644 --- a/mod/help.php +++ b/mod/help.php @@ -36,13 +36,14 @@ function help_content(&$a) { $path .= argv($x); } $title = basename($path); - + $filename = $path; $text = load_doc_file('doc/' . $path . '.md'); $a->page['title'] = t('Help:') . ' ' . str_replace('-', ' ', notags($title)); } $home = load_doc_file('doc/Home.md'); if (!$text) { $text = $home; + $filename = "Home"; $a->page['title'] = t('Help'); } else { $a->page['aside'] = Markdown($home); @@ -57,7 +58,45 @@ function help_content(&$a) { } $html = Markdown($text); - $html = "".$html; + + if ($filename !== "Home") { + // create TOC but not for home + $lines = explode("\n", $html); + $toc="