From 0d5c0e85fe56b1d5654654dbe15cae85a5b4e5a1 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" Date: Tue, 27 Jul 1999 16:25:08 +0000 Subject: [PATCH] The 'modules' list on the main query page was just all wrong. --- webtools/bonsai/CGI.pl | 2 +- webtools/bonsai/cvsqueryform.cgi | 11 ++++++----- webtools/bonsai/modules.pl | 1 - 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/webtools/bonsai/CGI.pl b/webtools/bonsai/CGI.pl index 520e38dc9c9e..74fa229f634e 100644 --- a/webtools/bonsai/CGI.pl +++ b/webtools/bonsai/CGI.pl @@ -265,7 +265,7 @@ sub cvsmenu { $desc = $::TreeInfo{$i}{'description'} unless $desc; $root = "cvsroot=$::TreeInfo{$i}{'repository'}"; - $module = "module=$i"; + $module = "module=$::TreeInfo{$i}{'module'}"; print "
  • $desc\n"; }; print "\n"; diff --git a/webtools/bonsai/cvsqueryform.cgi b/webtools/bonsai/cvsqueryform.cgi index 59116ce27ac7..0531c13123a5 100755 --- a/webtools/bonsai/cvsqueryform.cgi +++ b/webtools/bonsai/cvsqueryform.cgi @@ -22,8 +22,6 @@ require 'CGI.pl'; -use vars qw(@LegalDirs); - $|=1; print "Content-type: text/html\n\n"; @@ -34,6 +32,9 @@ $CVS_ROOT = pickDefaultRepository() unless $CVS_ROOT; $::TreeID = $::FORM{'module'} if (exists($::TreeInfo{$::FORM{'module'}}{'repository'})); +$modules = {}; +require 'modules.pl'; + PutsHeader("Bonsai - CVS Query Form", "CVS Query Form", "$CVS_ROOT - $::TreeInfo{$::TreeID}{shortdesc}"); @@ -90,11 +91,11 @@ else { # # Print out all the Different Modules # -LoadDirList(); -for $k (sort( grep(!/\*$/, @::LegalDirs) ) ){ - print "