]> mj.ucw.cz Git - pciids.git/commitdiff
Help index only in other helps
authorMichal Vaner <vorner@ucw.cz>
Mon, 8 Sep 2008 20:51:05 +0000 (22:51 +0200)
committerMichal Vaner <vorner@ucw.cz>
Mon, 8 Sep 2008 20:51:05 +0000 (22:51 +0200)
PciIds/Html/Help.pm

index b16e5622fd9c3bdbe0a2bc2699453d6398649792..5d0833425f853ae01c880f3cbea06f5d0c111418 100644 (file)
@@ -37,7 +37,7 @@ sub getHelp( $$ ) {
        genHtmlHead( $req, $head, undef );
        my $addr = PciIds::Address::new( $req->uri() );
        print "<div class='top'>\n";
-       genMenu( $req, $addr, $args, $auth, [ [ 'Help index', 'help', 'index' ] ] );
+       genMenu( $req, $addr, $args, $auth, [ ( $helpname eq 'index' ) ? () : [ 'Help index', 'help', 'index' ] ] );
        print "<h1>$head</h1>\n";
        print "<div class='clear'></div></div>\n";
        genPath( $req, $addr, 1 );