Closed Bug 509053 Opened 15 years ago Closed 15 years ago

Individual scripts, subroutines, and modules should not all have to have code to check if PatchReader is installed

Categories

(Bugzilla :: Creating/Changing Bugs, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

(Whiteboard: [es-gnome])

Attachments

(1 file, 1 obsolete file)

Right now we have code that tries to load PatchReader to see if it's enabled, all over the place. Instead, we should just have a feature_enabled function that tells us if a particular feature is enabled.
Depends on: 509054
The patch I'm about to attach will be built on top of bug 509045.
Depends on: 509045
Attached patch v1 (obsolete) — Splinter Review
Assignee: create-and-change → mkanat
Status: NEW → ASSIGNED
Attachment #393233 - Flags: review?(LpSolit)
Whiteboard: [es-gnome]
Comment on attachment 393233 [details] [diff] [review]
v1

It looks good, but it conflicts with your checkin from bug 509108 in Template.pm. Could you unbitrot it?
Attachment #393233 - Flags: review?(LpSolit) → review-
Attached patch v2Splinter Review
Okay, here you go. :-) I also added POD in Bugzilla.pm for feature().
Attachment #393233 - Attachment is obsolete: true
Attachment #403706 - Flags: review?(LpSolit)
Comment on attachment 403706 [details] [diff] [review]
v2

Seems to work fine. r=LpSolit

Please commit it asap as it bitrots one of my own patches waiting for review.
Attachment #403706 - Flags: review?(LpSolit) → review+
Flags: approval+
Okay, here we go! :-)

Checking in Bugzilla.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla.pm,v  <--  Bugzilla.pm
new revision: 1.77; previous revision: 1.76
done
Checking in attachment.cgi;
/cvsroot/mozilla/webtools/bugzilla/attachment.cgi,v  <--  attachment.cgi
new revision: 1.162; previous revision: 1.161
done
Checking in post_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/post_bug.cgi,v  <--  post_bug.cgi
new revision: 1.203; previous revision: 1.202
done
Checking in process_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v  <--  process_bug.cgi
new revision: 1.423; previous revision: 1.422
done
Checking in show_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/show_bug.cgi,v  <--  show_bug.cgi
new revision: 1.61; previous revision: 1.60
done
Checking in Bugzilla/Template.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Template.pm,v  <--  Template.pm
new revision: 1.109; previous revision: 1.108
done
Checking in template/en/default/attachment/edit.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/edit.html.tmpl,v  <--  edit.html.tmpl
new revision: 1.62; previous revision: 1.61
done
Checking in template/en/default/attachment/list.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/list.html.tmpl,v  <--  list.html.tmpl
new revision: 1.42; previous revision: 1.41
done
Checking in template/en/default/global/code-error.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/code-error.html.tmpl,v  <--  code-error.html.tmpl
new revision: 1.118; previous revision: 1.117
done
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Keywords: relnote
Added to the release notes in bug 547466.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: