зеркало из https://github.com/mozilla/gecko-dev.git
Fixed a bunch of "undefined variable" warnings.
This commit is contained in:
Родитель
27d06db43a
Коммит
90ca406a4e
|
@ -247,6 +247,9 @@ sub cvsmenu {
|
|||
|
||||
LoadTreeConfig();
|
||||
|
||||
if (!defined $extra) {
|
||||
$extra = "";
|
||||
}
|
||||
print "<table border=1 bgcolor=#ffffcc $extra>\n";
|
||||
print "<tr><th>Menu</tr><tr><td><p>\n<dl>\n";
|
||||
|
||||
|
@ -277,7 +280,7 @@ sub cvsmenu {
|
|||
}
|
||||
close EXTRA;
|
||||
}
|
||||
|
||||
|
||||
$maintainer = Param('maintainer');
|
||||
print "</dl>
|
||||
<p></tr><tr><td>
|
||||
|
|
|
@ -29,8 +29,11 @@ print "Content-type: text/html\n\n";
|
|||
LoadTreeConfig();
|
||||
$CVS_ROOT = $::FORM{'cvsroot'};
|
||||
$CVS_ROOT = pickDefaultRepository() unless $CVS_ROOT;
|
||||
$::TreeID = $::FORM{'module'}
|
||||
if (exists($::TreeInfo{$::FORM{'module'}}{'repository'}));
|
||||
if (exists $::FORM{'module'}) {
|
||||
if (exists($::TreeInfo{$::FORM{'module'}}{'repository'})) {
|
||||
$::TreeID = $::FORM{'module'}
|
||||
}
|
||||
}
|
||||
|
||||
$modules = {};
|
||||
require 'modules.pl';
|
||||
|
@ -67,7 +70,9 @@ $bMultiRepos = (@reposList > 1);
|
|||
# This code sucks, I should rewrite it to be shorter
|
||||
#
|
||||
$Module = 'default';
|
||||
if( $::FORM{module} eq 'all' || $::FORM{module} eq '' ){
|
||||
|
||||
if (!exists $::FORM{module} || $::FORM{module} eq 'all' ||
|
||||
$::FORM{module} eq '') {
|
||||
print "<OPTION SELECTED VALUE='all'>All Files in the Repository\n";
|
||||
if( $bMultiRepos ){
|
||||
print "<OPTION VALUE='allrepositories'>All Files in all Repositories\n";
|
||||
|
@ -121,6 +126,9 @@ regexpradio('branchtype') .
|
|||
#
|
||||
# Query by directory
|
||||
#
|
||||
|
||||
$::FORM{dir} ||= "";
|
||||
|
||||
print "
|
||||
<tr>
|
||||
<th align=right>Directory:</th>
|
||||
|
@ -131,6 +139,8 @@ print "
|
|||
</tr>
|
||||
";
|
||||
|
||||
$::FORM{file} ||= "";
|
||||
|
||||
print "
|
||||
<tr>
|
||||
<th align=right>File:</th>
|
||||
|
@ -145,6 +155,9 @@ regexpradio('filetype') . "
|
|||
#
|
||||
# Who
|
||||
#
|
||||
|
||||
$::FORM{who} ||= "";
|
||||
|
||||
print "
|
||||
<tr>
|
||||
<th align=right>Who:</th>
|
||||
|
@ -276,10 +289,13 @@ sub regexpradio {
|
|||
my ($c1, $c2, $c3);
|
||||
|
||||
$c1 = $c2 = $c3 = "";
|
||||
if( $::FORM{$name} eq 'regexp'){
|
||||
|
||||
my $n = $::FORM{$name} || "";
|
||||
|
||||
if( $n eq 'regexp'){
|
||||
$c2 = "checked";
|
||||
}
|
||||
elsif( $::FORM{$name} eq 'notregexp'){
|
||||
elsif( $n eq 'notregexp'){
|
||||
$c3 = "checked";
|
||||
}
|
||||
else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче