fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-06-25 06:54 am

[dw-free] Make siteschemes link to /nav/BLAH instead of /nav?cat=BLAH

[commit: http://hg.dwscoalition.org/dw-free/rev/e5a8ee8c1d89]

http://bugs.dwscoalition.org/show_bug.cgi?id=2696

Make menu headers link to /nav/category, instead of /nav?cat=category.

Patch by [personal profile] foxfirefey.

Files modified:
  • cgi-bin/bml/scheme/global.look
--------------------------------------------------------------------------------
diff -r 326fc5843cda -r e5a8ee8c1d89 cgi-bin/bml/scheme/global.look
--- a/cgi-bin/bml/scheme/global.look	Fri Jun 25 14:54:44 2010 +0800
+++ b/cgi-bin/bml/scheme/global.look	Fri Jun 25 15:00:31 2010 +0800
@@ -305,7 +305,7 @@ menunav<=
             push @displayed, "<li class='subnav'><a href='$item->{url}'>" . BML::ml( "$item->{text}", $item->{text_opts} ) . "</a></li>" if $item->{display};
         }
         if ( @displayed ) {   # only display a top-level menu if any of its items are displayed
-            $ret .= "<li id='${cat}_topnav' class='topnav'><a href='$LJ::SITEROOT/nav?cat=$cat'>$ML{\"menunav.$cat\"}</a>\n";
+            $ret .= "<li id='${cat}_topnav' class='topnav'><a href='$LJ::SITEROOT/nav/$cat'>$ML{\"menunav.$cat\"}</a>\n";
             $ret .= "<ul id='${cat}_subnav' class='subnav_container'>\n";
             $ret .= join( "\n", @displayed ) . "\n";
             $ret .= "</ul>\n";
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org