зеркало из https://github.com/mozilla/pjs.git
Bug 330519: Remove unused IsInClassification() function from globals.pl - Patch by Fr�d�ric Buclin <LpSolit@gmail.com> r=Tru a=justdave
This commit is contained in:
Родитель
140ec2394e
Коммит
39decd3da1
|
@ -323,24 +323,6 @@ sub AnyDefaultGroups {
|
||||||
return $::CachedAnyDefaultGroups;
|
return $::CachedAnyDefaultGroups;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub IsInClassification {
|
|
||||||
my ($classification,$productname) = @_;
|
|
||||||
|
|
||||||
if (! Param('useclassification')) {
|
|
||||||
return 1;
|
|
||||||
} else {
|
|
||||||
my $query = "SELECT classifications.name " .
|
|
||||||
"FROM products,classifications " .
|
|
||||||
"WHERE products.classification_id=classifications.id ";
|
|
||||||
$query .= "AND products.name = " . SqlQuote($productname);
|
|
||||||
PushGlobalSQLState();
|
|
||||||
SendSQL($query);
|
|
||||||
my ($ret) = FetchSQLData();
|
|
||||||
PopGlobalSQLState();
|
|
||||||
return ($ret eq $classification);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sub ValidatePassword {
|
sub ValidatePassword {
|
||||||
# Determines whether or not a password is valid (i.e. meets Bugzilla's
|
# Determines whether or not a password is valid (i.e. meets Bugzilla's
|
||||||
# requirements for length and content).
|
# requirements for length and content).
|
||||||
|
|
Загрузка…
Ссылка в новой задаче