Closed Bug 342410 Opened 18 years ago Closed 18 years ago

Various modules assume functions are in global scope, when none are

Categories

(Bugzilla :: User Accounts, defect)

2.23
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: mkanat, Assigned: mkanat)

Details

Attachments

(1 file)

Bugzilla::User has a bunch of silly calls to &::Param, which is not a global function.

Bugzilla::Chart has some calls to &::ThrowUserError, which is also not a global function.
Attached patch v1Splinter Review
Pretty trivial fix.
Attachment #226639 - Flags: review?(LpSolit)
Comment on attachment 226639 [details] [diff] [review]
v1

process_bug.cgi also uses some constants as global:

1760:        unless ($control > &::CONTROLMAPNA)  {
1763:        if ($control == &::CONTROLMAPMANDATORY) {


Your patch looks good. r=LpSolit
Attachment #226639 - Flags: review?(LpSolit) → review+
Status: NEW → ASSIGNED
Flags: approval?
Flags: approval? → approval+
Checking in Bugzilla/Chart.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Chart.pm,v  <--  Chart.pm
new revision: 1.13; previous revision: 1.12
done
Checking in Bugzilla/User.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/User.pm,v  <--  User.pm
new revision: 1.113; previous revision: 1.112
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Checked in on the Erbix branch:

Checking in Bugzilla/Chart.pm;
/cvs/erbix-code/Bugzilla/Chart.pm,v  <--  Chart.pm
new revision: 1.2; previous revision: 1.1
done
Checking in Bugzilla/User.pm;
/cvs/erbix-code/Bugzilla/User.pm,v  <--  User.pm
new revision: 1.2; previous revision: 1.1
done
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: