Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
@@ -102,7 +102,7 @@ class Help extends BaseModule
|
||||
|
||||
$idNum[$level] ++;
|
||||
|
||||
$href = DI::baseUrl() . "/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;
|
||||
|
||||
Reference in New Issue
Block a user