X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fhelp.php;h=c380aa39138267de91eca27a5c2919e3d5f36fab;hb=9fb4ba2b733d59b8a704cb8df846c3b43769503d;hp=602653eea8f095585132ee3da175452a52c89806;hpb=09851331a9dc8601919cd0c9200686b92843d235;p=friendica.git diff --git a/mod/help.php b/mod/help.php index 602653eea8..c380aa3913 100644 --- a/mod/help.php +++ b/mod/help.php @@ -30,10 +30,9 @@ function help_content(App $a) { $path = ''; // looping through the argv keys bigger than 0 to build // a path relative to /help - for ($x = 1; $x < argc(); $x ++) { - if (strlen($path)) { + for($x = 1; $x < argc(); $x ++) { + if(strlen($path)) $path .= '/'; - } $path .= argv($x); } $title = basename($path); @@ -66,22 +65,16 @@ function help_content(App $a) { $toc="

TOC

"; $html = implode("\n",$lines); $a->page['aside'] = $toc.$a->page['aside'];