summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/AntiSpam/Config.pm3
-rw-r--r--extensions/AntiSpam/Extension.pm1
-rw-r--r--extensions/AntiSpam/lib/Config.pm1
-rw-r--r--extensions/BMO/Config.pm3
-rw-r--r--extensions/BMO/Extension.pm4
-rwxr-xr-xextensions/BMO/bin/bug_1022707.pl2
-rwxr-xr-xextensions/BMO/bin/bug_1093952.pl2
-rwxr-xr-xextensions/BMO/bin/bug_1141452.pl2
-rwxr-xr-xextensions/BMO/bin/migrate-github-pull-requests.pl2
-rw-r--r--extensions/BMO/lib/Constants.pm4
-rw-r--r--extensions/BMO/lib/Data.pm3
-rw-r--r--extensions/BMO/lib/FakeBug.pm2
-rw-r--r--extensions/BMO/lib/Reports/Groups.pm2
-rw-r--r--extensions/BMO/lib/Reports/Internship.pm2
-rw-r--r--extensions/BMO/lib/Reports/ProductSecurity.pm2
-rw-r--r--extensions/BMO/lib/Reports/Recruiting.pm2
-rw-r--r--extensions/BMO/lib/Reports/ReleaseTracking.pm2
-rw-r--r--extensions/BMO/lib/Reports/Triage.pm3
-rw-r--r--extensions/BMO/lib/Reports/UserActivity.pm2
-rw-r--r--extensions/BMO/lib/Util.pm2
-rw-r--r--extensions/BMO/lib/WebService.pm1
-rw-r--r--extensions/Bitly/Config.pm33
-rw-r--r--extensions/Bitly/Extension.pm2
-rw-r--r--extensions/Bitly/lib/WebService.pm1
-rw-r--r--extensions/BugModal/Config.pm2
-rw-r--r--extensions/BugModal/Extension.pm1
-rw-r--r--extensions/BugModal/lib/ActivityStream.pm2
-rw-r--r--extensions/BugModal/lib/MonkeyPatches.pm8
-rw-r--r--extensions/BugModal/lib/Util.pm2
-rw-r--r--extensions/BugModal/lib/WebService.pm1
-rw-r--r--extensions/BugmailFilter/Config.pm3
-rw-r--r--extensions/BugmailFilter/Extension.pm2
-rw-r--r--extensions/BugmailFilter/lib/Constants.pm3
-rw-r--r--extensions/BugmailFilter/lib/FakeField.pm1
-rw-r--r--extensions/BugmailFilter/lib/Filter.pm1
-rw-r--r--extensions/BzAPI/Config.pm2
-rw-r--r--extensions/BzAPI/Extension.pm3
-rw-r--r--extensions/BzAPI/lib/Constants.pm2
-rw-r--r--extensions/BzAPI/lib/Resources/Bug.pm1
-rw-r--r--extensions/BzAPI/lib/Resources/Bugzilla.pm1
-rw-r--r--extensions/BzAPI/lib/Resources/User.pm1
-rw-r--r--extensions/BzAPI/lib/Util.pm1
-rw-r--r--extensions/ComponentWatching/Config.pm4
-rw-r--r--extensions/ComponentWatching/Extension.pm4
-rw-r--r--extensions/ContributorEngagement/Config.pm3
-rw-r--r--extensions/ContributorEngagement/Extension.pm1
-rw-r--r--extensions/ContributorEngagement/lib/Constants.pm2
-rw-r--r--extensions/EditComments/Config.pm3
-rw-r--r--extensions/EditComments/Extension.pm1
-rw-r--r--extensions/EditComments/lib/WebService.pm1
-rw-r--r--extensions/EditTable/Config.pm3
-rw-r--r--extensions/EditTable/Extension.pm1
-rw-r--r--extensions/Ember/Config.pm1
-rw-r--r--extensions/Ember/Extension.pm2
-rw-r--r--extensions/Example/Config.pm28
-rw-r--r--extensions/Example/Extension.pm27
-rw-r--r--extensions/Example/lib/Auth/Login.pm25
-rw-r--r--extensions/Example/lib/Auth/Verify.pm25
-rw-r--r--extensions/Example/lib/Config.pm26
-rw-r--r--extensions/Example/lib/Util.pm25
-rw-r--r--extensions/Example/lib/WebService.pm25
-rw-r--r--extensions/FlagDefaultRequestee/Config.pm2
-rw-r--r--extensions/FlagDefaultRequestee/Extension.pm3
-rw-r--r--extensions/FlagDefaultRequestee/lib/Constants.pm2
-rw-r--r--extensions/FlagTypeComment/Config.pm3
-rw-r--r--extensions/FlagTypeComment/Extension.pm4
-rw-r--r--extensions/FlagTypeComment/lib/Constants.pm3
-rw-r--r--extensions/GitHubAuth/Config.pm1
-rw-r--r--extensions/GitHubAuth/Extension.pm2
-rw-r--r--extensions/GitHubAuth/lib/Client.pm2
-rw-r--r--extensions/GitHubAuth/lib/Client/Error.pm1
-rw-r--r--extensions/GitHubAuth/lib/Config.pm1
-rw-r--r--extensions/GitHubAuth/lib/Login.pm3
-rw-r--r--extensions/GitHubAuth/lib/Verify.pm3
-rw-r--r--extensions/Gravatar/Config.pm2
-rw-r--r--extensions/Gravatar/Extension.pm1
-rw-r--r--extensions/Gravatar/lib/Data.pm3
-rw-r--r--extensions/GuidedBugEntry/Config.pm3
-rw-r--r--extensions/GuidedBugEntry/Extension.pm4
-rw-r--r--extensions/InlineHistory/Config.pm3
-rw-r--r--extensions/InlineHistory/Extension.pm4
-rw-r--r--extensions/LastResolved/Config.pm2
-rw-r--r--extensions/LastResolved/Extension.pm2
-rw-r--r--extensions/LimitedEmail/Config.pm3
-rw-r--r--extensions/LimitedEmail/Extension.pm4
-rw-r--r--extensions/MozProjectReview/Config.pm2
-rw-r--r--extensions/MozProjectReview/Extension.pm2
-rw-r--r--extensions/MozReview/Config.pm1
-rwxr-xr-xextensions/MozReview/bin/add-mozreview-children.pl2
-rw-r--r--extensions/MozReview/lib/Config.pm1
-rw-r--r--extensions/MozReview/lib/WebService.pm1
-rw-r--r--extensions/MyDashboard/Config.pm2
-rw-r--r--extensions/MyDashboard/Extension.pm2
-rw-r--r--extensions/MyDashboard/lib/BugInterest.pm1
-rw-r--r--extensions/MyDashboard/lib/Queries.pm2
-rw-r--r--extensions/MyDashboard/lib/Util.pm2
-rw-r--r--extensions/MyDashboard/lib/WebService.pm1
-rw-r--r--extensions/Needinfo/Config.pm3
-rw-r--r--extensions/Needinfo/Extension.pm2
-rw-r--r--extensions/OpenGraph/Config.pm2
-rw-r--r--extensions/OpenGraph/Extension.pm4
-rw-r--r--extensions/OrangeFactor/Config.pm3
-rw-r--r--extensions/OrangeFactor/Extension.pm4
-rw-r--r--extensions/Persona/Config.pm3
-rw-r--r--extensions/Persona/Extension.pm4
-rw-r--r--extensions/Persona/lib/Config.pm1
-rw-r--r--extensions/Persona/lib/Login.pm4
-rw-r--r--extensions/ProdCompSearch/Config.pm3
-rw-r--r--extensions/ProdCompSearch/Extension.pm4
-rw-r--r--extensions/ProdCompSearch/lib/WebService.pm1
-rw-r--r--extensions/ProductDashboard/Config.pm2
-rw-r--r--extensions/ProductDashboard/Extension.pm2
-rw-r--r--extensions/ProductDashboard/lib/Queries.pm2
-rw-r--r--extensions/ProductDashboard/lib/Util.pm2
-rw-r--r--extensions/Profanivore/Config.pm3
-rw-r--r--extensions/Profanivore/Extension.pm4
-rw-r--r--extensions/Push/Config.pm2
-rw-r--r--extensions/Push/Extension.pm1
-rwxr-xr-xextensions/Push/bin/bugzilla-pushd.pl6
-rwxr-xr-xextensions/Push/bin/nagios_push_checker.pl6
-rw-r--r--extensions/Push/lib/Admin.pm1
-rw-r--r--extensions/Push/lib/BacklogMessage.pm1
-rw-r--r--extensions/Push/lib/BacklogQueue.pm1
-rw-r--r--extensions/Push/lib/Backoff.pm1
-rw-r--r--extensions/Push/lib/Config.pm1
-rw-r--r--extensions/Push/lib/Connector.disabled/AMQP.pm1
-rw-r--r--extensions/Push/lib/Connector.disabled/ServiceNow.pm1
-rw-r--r--extensions/Push/lib/Connector/Aha.pm1
-rw-r--r--extensions/Push/lib/Connector/Base.pm1
-rw-r--r--extensions/Push/lib/Connector/File.pm1
-rw-r--r--extensions/Push/lib/Connector/ReviewBoard.pm1
-rw-r--r--extensions/Push/lib/Connector/Spark.pm1
-rw-r--r--extensions/Push/lib/Connector/TCL.pm1
-rw-r--r--extensions/Push/lib/Connectors.pm1
-rw-r--r--extensions/Push/lib/Constants.pm3
-rw-r--r--extensions/Push/lib/Daemon.pm1
-rw-r--r--extensions/Push/lib/Log.pm1
-rw-r--r--extensions/Push/lib/LogEntry.pm1
-rw-r--r--extensions/Push/lib/Logger.pm1
-rw-r--r--extensions/Push/lib/Message.pm1
-rw-r--r--extensions/Push/lib/Option.pm1
-rw-r--r--extensions/Push/lib/Push.pm1
-rw-r--r--extensions/Push/lib/Queue.pm1
-rw-r--r--extensions/Push/lib/Serialise.pm1
-rw-r--r--extensions/Push/lib/Util.pm1
-rw-r--r--extensions/REMO/Config.pm3
-rw-r--r--extensions/REMO/Extension.pm4
-rw-r--r--extensions/RequestNagger/Config.pm3
-rw-r--r--extensions/RequestNagger/Extension.pm1
-rwxr-xr-xextensions/RequestNagger/bin/send-request-nags.pl2
-rw-r--r--extensions/RequestNagger/lib/Bug.pm3
-rw-r--r--extensions/RequestNagger/lib/Constants.pm3
-rw-r--r--extensions/RequestNagger/lib/Settings.pm2
-rw-r--r--extensions/RestrictComments/Config.pm2
-rw-r--r--extensions/RestrictComments/Extension.pm1
-rw-r--r--extensions/RestrictComments/lib/Config.pm1
-rw-r--r--extensions/Review/Config.pm3
-rw-r--r--extensions/Review/Extension.pm2
-rwxr-xr-xextensions/Review/bin/migrate_mentor_from_whiteboard.pl2
-rwxr-xr-xextensions/Review/bin/review_requests_rebuild.pl4
-rw-r--r--extensions/Review/lib/FlagStateActivity.pm2
-rw-r--r--extensions/Review/lib/Util.pm2
-rw-r--r--extensions/Review/lib/WebService.pm1
-rw-r--r--extensions/SecureMail/Config.pm3
-rw-r--r--extensions/SecureMail/Extension.pm4
-rw-r--r--extensions/SiteMapIndex/Config.pm3
-rw-r--r--extensions/SiteMapIndex/Extension.pm4
-rw-r--r--extensions/SiteMapIndex/lib/Constants.pm4
-rw-r--r--extensions/SiteMapIndex/lib/Util.pm4
-rw-r--r--extensions/Splinter/Config.pm4
-rw-r--r--extensions/Splinter/Extension.pm2
-rw-r--r--extensions/Splinter/lib/Config.pm1
-rw-r--r--extensions/Splinter/lib/Util.pm2
-rw-r--r--extensions/TagNewUsers/Config.pm3
-rw-r--r--extensions/TagNewUsers/Extension.pm6
-rw-r--r--extensions/TrackingFlags/Config.pm3
-rw-r--r--extensions/TrackingFlags/Extension.pm2
-rwxr-xr-xextensions/TrackingFlags/bin/bug_825946.pl2
-rwxr-xr-xextensions/TrackingFlags/bin/bulk_flag_clear.pl6
-rwxr-xr-xextensions/TrackingFlags/bin/migrate_tracking_flags.pl6
-rw-r--r--extensions/TrackingFlags/lib/Admin.pm1
-rw-r--r--extensions/TrackingFlags/lib/Constants.pm3
-rw-r--r--extensions/TrackingFlags/lib/Flag.pm1
-rw-r--r--extensions/TrackingFlags/lib/Flag/Bug.pm1
-rw-r--r--extensions/TrackingFlags/lib/Flag/Value.pm1
-rw-r--r--extensions/TrackingFlags/lib/Flag/Visibility.pm1
-rw-r--r--extensions/TypeSniffer/Config.pm3
-rw-r--r--extensions/TypeSniffer/Extension.pm4
-rw-r--r--extensions/UserProfile/Config.pm3
-rw-r--r--extensions/UserProfile/Extension.pm1
-rwxr-xr-xextensions/UserProfile/bin/migrate.pl4
-rwxr-xr-xextensions/UserProfile/bin/update.pl4
-rw-r--r--extensions/UserProfile/lib/Util.pm1
-rw-r--r--extensions/UserStory/Config.pm3
-rw-r--r--extensions/UserStory/Extension.pm2
-rw-r--r--extensions/UserStory/lib/Constants.pm1
-rw-r--r--extensions/Voting/Config.pm27
-rw-r--r--extensions/Voting/Extension.pm31
-rw-r--r--extensions/ZPushNotify/Config.pm3
-rw-r--r--extensions/ZPushNotify/Extension.pm2
-rwxr-xr-xextensions/create.pl34
201 files changed, 487 insertions, 246 deletions
diff --git a/extensions/AntiSpam/Config.pm b/extensions/AntiSpam/Config.pm
index 92c32f629..e16add9b7 100644
--- a/extensions/AntiSpam/Config.pm
+++ b/extensions/AntiSpam/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::AntiSpam;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'AntiSpam';
use constant REQUIRED_MODULES => [
diff --git a/extensions/AntiSpam/Extension.pm b/extensions/AntiSpam/Extension.pm
index 2abba291d..19eddb4e7 100644
--- a/extensions/AntiSpam/Extension.pm
+++ b/extensions/AntiSpam/Extension.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::AntiSpam;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/AntiSpam/lib/Config.pm b/extensions/AntiSpam/lib/Config.pm
index 754907d22..b6d1234d9 100644
--- a/extensions/AntiSpam/lib/Config.pm
+++ b/extensions/AntiSpam/lib/Config.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::AntiSpam::Config;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BMO/Config.pm b/extensions/BMO/Config.pm
index 93445f576..153af24cb 100644
--- a/extensions/BMO/Config.pm
+++ b/extensions/BMO/Config.pm
@@ -20,7 +20,10 @@
# Gervase Markham <gerv@gerv.net>
package Bugzilla::Extension::BMO;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'BMO';
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 5b87d2e8b..ac0acd72d 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -22,7 +22,11 @@
# Byron Jones <glob@mozilla.com>
package Bugzilla::Extension::BMO;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::BugMail;
diff --git a/extensions/BMO/bin/bug_1022707.pl b/extensions/BMO/bin/bug_1022707.pl
index c27757220..b0a49aa65 100755
--- a/extensions/BMO/bin/bug_1022707.pl
+++ b/extensions/BMO/bin/bug_1022707.pl
@@ -11,7 +11,7 @@ use strict;
use warnings;
use FindBin qw($RealBin);
-use lib "$RealBin/../../..";
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
use Bugzilla;
use Bugzilla::Constants qw( USAGE_MODE_CMDLINE );
diff --git a/extensions/BMO/bin/bug_1093952.pl b/extensions/BMO/bin/bug_1093952.pl
index 55d68b9be..a784e63a3 100755
--- a/extensions/BMO/bin/bug_1093952.pl
+++ b/extensions/BMO/bin/bug_1093952.pl
@@ -10,7 +10,7 @@ use strict;
use warnings;
use FindBin qw($RealBin);
-use lib "$RealBin/../../..";
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
use Bugzilla;
use Bugzilla::Component;
diff --git a/extensions/BMO/bin/bug_1141452.pl b/extensions/BMO/bin/bug_1141452.pl
index 0d9b891ea..d2d260d7b 100755
--- a/extensions/BMO/bin/bug_1141452.pl
+++ b/extensions/BMO/bin/bug_1141452.pl
@@ -10,7 +10,7 @@ use strict;
use warnings;
use FindBin qw($RealBin);
-use lib "$RealBin/../../..";
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
BEGIN {
use Bugzilla;
diff --git a/extensions/BMO/bin/migrate-github-pull-requests.pl b/extensions/BMO/bin/migrate-github-pull-requests.pl
index 1d84352a2..11bf8c55f 100755
--- a/extensions/BMO/bin/migrate-github-pull-requests.pl
+++ b/extensions/BMO/bin/migrate-github-pull-requests.pl
@@ -11,7 +11,7 @@ use strict;
use warnings;
use FindBin qw($RealBin);
-use lib "$RealBin/../../..";
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
use Bugzilla;
BEGIN { Bugzilla->extensions() }
diff --git a/extensions/BMO/lib/Constants.pm b/extensions/BMO/lib/Constants.pm
index c77e14f7b..3670cb9a2 100644
--- a/extensions/BMO/lib/Constants.pm
+++ b/extensions/BMO/lib/Constants.pm
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BMO::Constants;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Exporter);
our @EXPORT = qw(
REQUEST_MAX_ATTACH_LINES
diff --git a/extensions/BMO/lib/Data.pm b/extensions/BMO/lib/Data.pm
index b074cb64a..d4c2e3012 100644
--- a/extensions/BMO/lib/Data.pm
+++ b/extensions/BMO/lib/Data.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BMO::Data;
+
+use 5.10.1;
use strict;
+use warnings;
use base qw(Exporter);
use Tie::IxHash;
diff --git a/extensions/BMO/lib/FakeBug.pm b/extensions/BMO/lib/FakeBug.pm
index 6127cb560..f84835ddd 100644
--- a/extensions/BMO/lib/FakeBug.pm
+++ b/extensions/BMO/lib/FakeBug.pm
@@ -3,7 +3,9 @@ package Bugzilla::Extension::BMO::FakeBug;
# hack to allow the bug entry templates to use check_can_change_field to see if
# various field values should be available to the current user
+use 5.10.1;
use strict;
+use warnings;
use Bugzilla::Bug;
diff --git a/extensions/BMO/lib/Reports/Groups.pm b/extensions/BMO/lib/Reports/Groups.pm
index a4816f914..ce7df767c 100644
--- a/extensions/BMO/lib/Reports/Groups.pm
+++ b/extensions/BMO/lib/Reports/Groups.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BMO::Reports::Groups;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BMO/lib/Reports/Internship.pm b/extensions/BMO/lib/Reports/Internship.pm
index cad403d09..2dfa583a6 100644
--- a/extensions/BMO/lib/Reports/Internship.pm
+++ b/extensions/BMO/lib/Reports/Internship.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BMO::Reports::Internship;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BMO/lib/Reports/ProductSecurity.pm b/extensions/BMO/lib/Reports/ProductSecurity.pm
index 2324e725a..e7ccda171 100644
--- a/extensions/BMO/lib/Reports/ProductSecurity.pm
+++ b/extensions/BMO/lib/Reports/ProductSecurity.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BMO::Reports::ProductSecurity;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BMO/lib/Reports/Recruiting.pm b/extensions/BMO/lib/Reports/Recruiting.pm
index bd988d9b1..39eb8327d 100644
--- a/extensions/BMO/lib/Reports/Recruiting.pm
+++ b/extensions/BMO/lib/Reports/Recruiting.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BMO::Reports::Recruiting;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BMO/lib/Reports/ReleaseTracking.pm b/extensions/BMO/lib/Reports/ReleaseTracking.pm
index 8894a5169..b6c7c4520 100644
--- a/extensions/BMO/lib/Reports/ReleaseTracking.pm
+++ b/extensions/BMO/lib/Reports/ReleaseTracking.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BMO::Reports::ReleaseTracking;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BMO/lib/Reports/Triage.pm b/extensions/BMO/lib/Reports/Triage.pm
index debb50577..e9a987b54 100644
--- a/extensions/BMO/lib/Reports/Triage.pm
+++ b/extensions/BMO/lib/Reports/Triage.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BMO::Reports::Triage;
+
+use 5.10.1;
use strict;
+use warnings;
use Bugzilla::Component;
use Bugzilla::Constants;
diff --git a/extensions/BMO/lib/Reports/UserActivity.pm b/extensions/BMO/lib/Reports/UserActivity.pm
index 0a8e79e1f..8dfe0c5cd 100644
--- a/extensions/BMO/lib/Reports/UserActivity.pm
+++ b/extensions/BMO/lib/Reports/UserActivity.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BMO::Reports::UserActivity;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BMO/lib/Util.pm b/extensions/BMO/lib/Util.pm
index df781b9d2..dc9c904f9 100644
--- a/extensions/BMO/lib/Util.pm
+++ b/extensions/BMO/lib/Util.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BMO::Util;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BMO/lib/WebService.pm b/extensions/BMO/lib/WebService.pm
index 87d45085e..6ee7cfa6e 100644
--- a/extensions/BMO/lib/WebService.pm
+++ b/extensions/BMO/lib/WebService.pm
@@ -19,6 +19,7 @@
package Bugzilla::Extension::BMO::WebService;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Bitly/Config.pm b/extensions/Bitly/Config.pm
index aff9d4b4b..a07df0f1b 100644
--- a/extensions/Bitly/Config.pm
+++ b/extensions/Bitly/Config.pm
@@ -6,32 +6,21 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Bitly;
-use strict;
-use Bugzilla::Install::Util qw(vers_cmp);
+use 5.10.1;
+use strict;
+use warnings;
use constant NAME => 'Bitly';
sub REQUIRED_MODULES {
- my @required;
- push @required, {
- package => 'LWP',
- module => 'LWP',
- version => 5,
- };
- # LWP 6 split https support into a separate package
- if (Bugzilla::Install::Requirements::have_vers({
- package => 'LWP',
- module => 'LWP',
- version => 6,
- })) {
- push @required, {
- package => 'LWP-Protocol-https',
- module => 'LWP::Protocol::https',
- version => 0
- };
- }
- return \@required;
+ return [
+ {
+ package => 'LWP',
+ module => 'LWP',
+ version => '5.835',
+ },
+ ];
}
use constant OPTIONAL_MODULES => [
@@ -42,4 +31,6 @@ use constant OPTIONAL_MODULES => [
},
];
+use constant API_VERSION_MAP => { '1_0' => '1_0' };
+
__PACKAGE__->NAME;
diff --git a/extensions/Bitly/Extension.pm b/extensions/Bitly/Extension.pm
index a368b20fe..82f17bc2a 100644
--- a/extensions/Bitly/Extension.pm
+++ b/extensions/Bitly/Extension.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Bitly;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Bitly/lib/WebService.pm b/extensions/Bitly/lib/WebService.pm
index b47accda6..b8ada56d2 100644
--- a/extensions/Bitly/lib/WebService.pm
+++ b/extensions/Bitly/lib/WebService.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Bitly::WebService;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BugModal/Config.pm b/extensions/BugModal/Config.pm
index a60a99a7a..25a864e6e 100644
--- a/extensions/BugModal/Config.pm
+++ b/extensions/BugModal/Config.pm
@@ -6,7 +6,9 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BugModal;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'BugModal';
use constant REQUIRED_MODULES => [ ];
diff --git a/extensions/BugModal/Extension.pm b/extensions/BugModal/Extension.pm
index 01faf06d5..fb3a69cc7 100644
--- a/extensions/BugModal/Extension.pm
+++ b/extensions/BugModal/Extension.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::BugModal;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BugModal/lib/ActivityStream.pm b/extensions/BugModal/lib/ActivityStream.pm
index c9e053934..708c056d4 100644
--- a/extensions/BugModal/lib/ActivityStream.pm
+++ b/extensions/BugModal/lib/ActivityStream.pm
@@ -9,6 +9,8 @@ package Bugzilla::Extension::BugModal::ActivityStream;
1;
package Bugzilla::Bug;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BugModal/lib/MonkeyPatches.pm b/extensions/BugModal/lib/MonkeyPatches.pm
index 61f945a87..88fce11af 100644
--- a/extensions/BugModal/lib/MonkeyPatches.pm
+++ b/extensions/BugModal/lib/MonkeyPatches.pm
@@ -9,6 +9,8 @@ package Bugzilla::Extension::BugModal::MonkeyPatches;
1;
package Bugzilla;
+
+use 5.10.1;
use strict;
use warnings;
@@ -22,6 +24,8 @@ sub treeherder_user {
}
package Bugzilla::Bug;
+
+use 5.10.1;
use strict;
use warnings;
@@ -37,6 +41,8 @@ sub active_attachments {
1;
package Bugzilla::User;
+
+use 5.10.1;
use strict;
use warnings;
@@ -60,6 +66,8 @@ sub moz_nick {
1;
package Bugzilla::Attachment;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BugModal/lib/Util.pm b/extensions/BugModal/lib/Util.pm
index 74311197a..6a453159e 100644
--- a/extensions/BugModal/lib/Util.pm
+++ b/extensions/BugModal/lib/Util.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BugModal::Util;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BugModal/lib/WebService.pm b/extensions/BugModal/lib/WebService.pm
index 7a05f263b..338129e9b 100644
--- a/extensions/BugModal/lib/WebService.pm
+++ b/extensions/BugModal/lib/WebService.pm
@@ -6,6 +6,7 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BugModal::WebService;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BugmailFilter/Config.pm b/extensions/BugmailFilter/Config.pm
index 9932afb40..5948c3b64 100644
--- a/extensions/BugmailFilter/Config.pm
+++ b/extensions/BugmailFilter/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BugmailFilter;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'BugmailFilter';
use constant REQUIRED_MODULES => [];
diff --git a/extensions/BugmailFilter/Extension.pm b/extensions/BugmailFilter/Extension.pm
index dc38e8577..d4d7bb790 100644
--- a/extensions/BugmailFilter/Extension.pm
+++ b/extensions/BugmailFilter/Extension.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BugmailFilter;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BugmailFilter/lib/Constants.pm b/extensions/BugmailFilter/lib/Constants.pm
index 20e5480d0..a6636dda7 100644
--- a/extensions/BugmailFilter/lib/Constants.pm
+++ b/extensions/BugmailFilter/lib/Constants.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::BugmailFilter::Constants;
+
+use 5.10.1;
use strict;
+use warnings;
use base qw(Exporter);
diff --git a/extensions/BugmailFilter/lib/FakeField.pm b/extensions/BugmailFilter/lib/FakeField.pm
index 88e4ac1ca..e9f8b1808 100644
--- a/extensions/BugmailFilter/lib/FakeField.pm
+++ b/extensions/BugmailFilter/lib/FakeField.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::BugmailFilter::FakeField;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BugmailFilter/lib/Filter.pm b/extensions/BugmailFilter/lib/Filter.pm
index d59e19fb7..7f2f4cb87 100644
--- a/extensions/BugmailFilter/lib/Filter.pm
+++ b/extensions/BugmailFilter/lib/Filter.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::BugmailFilter::Filter;
use base qw(Bugzilla::Object);
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/BzAPI/Config.pm b/extensions/BzAPI/Config.pm
index 89b8c1e02..bd463b4ba 100644
--- a/extensions/BzAPI/Config.pm
+++ b/extensions/BzAPI/Config.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::BzAPI;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'BzAPI';
diff --git a/extensions/BzAPI/Extension.pm b/extensions/BzAPI/Extension.pm
index f233b26e4..bb9805134 100644
--- a/extensions/BzAPI/Extension.pm
+++ b/extensions/BzAPI/Extension.pm
@@ -7,7 +7,10 @@
package Bugzilla::Extension::BzAPI;
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::Extension::BzAPI::Constants;
diff --git a/extensions/BzAPI/lib/Constants.pm b/extensions/BzAPI/lib/Constants.pm
index 65ae00480..fb611aae6 100644
--- a/extensions/BzAPI/lib/Constants.pm
+++ b/extensions/BzAPI/lib/Constants.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::BzAPI::Constants;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Exporter);
our @EXPORT = qw(
diff --git a/extensions/BzAPI/lib/Resources/Bug.pm b/extensions/BzAPI/lib/Resources/Bug.pm
index 77b567421..f3ff41049 100644
--- a/extensions/BzAPI/lib/Resources/Bug.pm
+++ b/extensions/BzAPI/lib/Resources/Bug.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::BzAPI::Resources::Bug;
use 5.10.1;
use strict;
+use warnings;
use Bugzilla::Bug;
use Bugzilla::Error;
diff --git a/extensions/BzAPI/lib/Resources/Bugzilla.pm b/extensions/BzAPI/lib/Resources/Bugzilla.pm
index 96b07297e..f39cd29f3 100644
--- a/extensions/BzAPI/lib/Resources/Bugzilla.pm
+++ b/extensions/BzAPI/lib/Resources/Bugzilla.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::BzAPI::Resources::Bugzilla;
use 5.10.1;
use strict;
+use warnings;
use Bugzilla;
use Bugzilla::Constants;
diff --git a/extensions/BzAPI/lib/Resources/User.pm b/extensions/BzAPI/lib/Resources/User.pm
index 7fbcdb871..550a61d28 100644
--- a/extensions/BzAPI/lib/Resources/User.pm
+++ b/extensions/BzAPI/lib/Resources/User.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::BzAPI::Resources::User;
use 5.10.1;
use strict;
+use warnings;
use Bugzilla::Extension::BzAPI::Util;
diff --git a/extensions/BzAPI/lib/Util.pm b/extensions/BzAPI/lib/Util.pm
index e783a1584..9760f4b5e 100644
--- a/extensions/BzAPI/lib/Util.pm
+++ b/extensions/BzAPI/lib/Util.pm
@@ -12,6 +12,7 @@
package Bugzilla::Extension::BzAPI::Util;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/ComponentWatching/Config.pm b/extensions/ComponentWatching/Config.pm
index 560b5c3c5..2014fbbfa 100644
--- a/extensions/ComponentWatching/Config.pm
+++ b/extensions/ComponentWatching/Config.pm
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::ComponentWatching;
+
+use 5.10.1;
use strict;
+use warnings;
+
use constant NAME => 'ComponentWatching';
__PACKAGE__->NAME;
diff --git a/extensions/ComponentWatching/Extension.pm b/extensions/ComponentWatching/Extension.pm
index f79b68595..36dee0e1d 100644
--- a/extensions/ComponentWatching/Extension.pm
+++ b/extensions/ComponentWatching/Extension.pm
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::ComponentWatching;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::Constants;
diff --git a/extensions/ContributorEngagement/Config.pm b/extensions/ContributorEngagement/Config.pm
index 3984dd60e..d48de3bc6 100644
--- a/extensions/ContributorEngagement/Config.pm
+++ b/extensions/ContributorEngagement/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::ContributorEngagement;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'ContributorEngagement';
diff --git a/extensions/ContributorEngagement/Extension.pm b/extensions/ContributorEngagement/Extension.pm
index def41b6ea..949517ecf 100644
--- a/extensions/ContributorEngagement/Extension.pm
+++ b/extensions/ContributorEngagement/Extension.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::ContributorEngagement;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/ContributorEngagement/lib/Constants.pm b/extensions/ContributorEngagement/lib/Constants.pm
index 0e08c02b8..dd379adcd 100644
--- a/extensions/ContributorEngagement/lib/Constants.pm
+++ b/extensions/ContributorEngagement/lib/Constants.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::ContributorEngagement::Constants;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Exporter);
diff --git a/extensions/EditComments/Config.pm b/extensions/EditComments/Config.pm
index dae675001..b95647940 100644
--- a/extensions/EditComments/Config.pm
+++ b/extensions/EditComments/Config.pm
@@ -9,11 +9,10 @@ package Bugzilla::Extension::EditComments;
use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'EditComments';
-
use constant REQUIRED_MODULES => [];
-
use constant OPTIONAL_MODULES => [];
__PACKAGE__->NAME;
diff --git a/extensions/EditComments/Extension.pm b/extensions/EditComments/Extension.pm
index fef1b7693..1dc22a85e 100644
--- a/extensions/EditComments/Extension.pm
+++ b/extensions/EditComments/Extension.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::EditComments;
use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Extension);
diff --git a/extensions/EditComments/lib/WebService.pm b/extensions/EditComments/lib/WebService.pm
index 2621e5f4a..6969ca742 100644
--- a/extensions/EditComments/lib/WebService.pm
+++ b/extensions/EditComments/lib/WebService.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::EditComments::WebService;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/EditTable/Config.pm b/extensions/EditTable/Config.pm
index d601951a4..b9bd003b2 100644
--- a/extensions/EditTable/Config.pm
+++ b/extensions/EditTable/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::EditTable;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'EditTable';
use constant REQUIRED_MODULES => [];
diff --git a/extensions/EditTable/Extension.pm b/extensions/EditTable/Extension.pm
index d353513e1..1eb0d82f9 100644
--- a/extensions/EditTable/Extension.pm
+++ b/extensions/EditTable/Extension.pm
@@ -16,6 +16,7 @@
package Bugzilla::Extension::EditTable;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Ember/Config.pm b/extensions/Ember/Config.pm
index e3405146d..5ceb98ec1 100644
--- a/extensions/Ember/Config.pm
+++ b/extensions/Ember/Config.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::Ember;
use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'Ember';
diff --git a/extensions/Ember/Extension.pm b/extensions/Ember/Extension.pm
index 1c8b8b4e9..8bb558c6f 100644
--- a/extensions/Ember/Extension.pm
+++ b/extensions/Ember/Extension.pm
@@ -9,6 +9,8 @@ package Bugzilla::Extension::Ember;
use 5.10.1;
use strict;
+use warnings;
+
use parent qw(Bugzilla::Extension);
our $VERSION = '0.01';
diff --git a/extensions/Example/Config.pm b/extensions/Example/Config.pm
index 378db359d..e7782ef6c 100644
--- a/extensions/Example/Config.pm
+++ b/extensions/Example/Config.pm
@@ -1,26 +1,16 @@
-# -*- Mode: perl; indent-tabs-mode: nil -*-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developers are Copyright (C) 2009 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-# Max Kanat-Alexander <mkanat@bugzilla.org>
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Example;
+
+use 5.10.1;
use strict;
+use warnings;
+
use constant NAME => 'Example';
use constant REQUIRED_MODULES => [
{
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm
index 4fd2d987f..a8cf8189f 100644
--- a/extensions/Example/Extension.pm
+++ b/extensions/Example/Extension.pm
@@ -1,27 +1,14 @@
-# -*- Mode: perl; indent-tabs-mode: nil -*-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developers are Copyright (C) 2009 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-# Max Kanat-Alexander <mkanat@bugzilla.org>
-# Frédéric Buclin <LpSolit@gmail.com>
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Example;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Extension);
use Bugzilla::Constants;
diff --git a/extensions/Example/lib/Auth/Login.pm b/extensions/Example/lib/Auth/Login.pm
index 9f4f37dc3..376fe21a8 100644
--- a/extensions/Example/lib/Auth/Login.pm
+++ b/extensions/Example/lib/Auth/Login.pm
@@ -1,25 +1,14 @@
-# -*- Mode: perl; indent-tabs-mode: nil -*-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Example Plugin.
-#
-# The Initial Developer of the Original Code is Canonical Ltd.
-# Portions created by Canonical are Copyright (C) 2008 Canonical Ltd.
-# All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Example::Auth::Login;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Auth::Login);
use constant user_can_create_account => 0;
use Bugzilla::Constants;
diff --git a/extensions/Example/lib/Auth/Verify.pm b/extensions/Example/lib/Auth/Verify.pm
index 0141a0d6a..cac6d1019 100644
--- a/extensions/Example/lib/Auth/Verify.pm
+++ b/extensions/Example/lib/Auth/Verify.pm
@@ -1,25 +1,14 @@
-# -*- Mode: perl; indent-tabs-mode: nil -*-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Example Plugin.
-#
-# The Initial Developer of the Original Code is Canonical Ltd.
-# Portions created by Canonical are Copyright (C) 2008 Canonical Ltd.
-# All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Example::Auth::Verify;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Auth::Verify);
use Bugzilla::Constants;
diff --git a/extensions/Example/lib/Config.pm b/extensions/Example/lib/Config.pm
index 75db22957..fac0046af 100644
--- a/extensions/Example/lib/Config.pm
+++ b/extensions/Example/lib/Config.pm
@@ -1,25 +1,13 @@
-# -*- Mode: perl; indent-tabs-mode: nil -*-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Example Plugin.
-#
-# The Initial Developer of the Original Code is Canonical Ltd.
-# Portions created by Canonical Ltd. are Copyright (C) 2008
-# Canonical Ltd. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
-# Bradley Baetz <bbaetz@acm.org>
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Example::Config;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Example/lib/Util.pm b/extensions/Example/lib/Util.pm
index 596f048e9..ccc349c9c 100644
--- a/extensions/Example/lib/Util.pm
+++ b/extensions/Example/lib/Util.pm
@@ -1,24 +1,13 @@
-# -*- Mode: perl; indent-tabs-mode: nil -*-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by Everything Solved, Inc. are Copyright (C) 2009
-# Everything Solved, Inc. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Example::Util;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Example/lib/WebService.pm b/extensions/Example/lib/WebService.pm
index bb83436e3..7b1940462 100644
--- a/extensions/Example/lib/WebService.pm
+++ b/extensions/Example/lib/WebService.pm
@@ -1,24 +1,13 @@
-# -*- Mode: perl; indent-tabs-mode: nil -*-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by Everything Solved, Inc. are Copyright (C) 2007
-# Everything Solved, Inc. All Rights Reserved.
-#
-# Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Example::WebService;
+
+use 5.10.1;
use strict;
use warnings;
use base qw(Bugzilla::WebService);
diff --git a/extensions/FlagDefaultRequestee/Config.pm b/extensions/FlagDefaultRequestee/Config.pm
index 70c5ca33a..dc4fb1353 100644
--- a/extensions/FlagDefaultRequestee/Config.pm
+++ b/extensions/FlagDefaultRequestee/Config.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::FlagDefaultRequestee;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'FlagDefaultRequestee';
diff --git a/extensions/FlagDefaultRequestee/Extension.pm b/extensions/FlagDefaultRequestee/Extension.pm
index 958a1bb85..f599feac2 100644
--- a/extensions/FlagDefaultRequestee/Extension.pm
+++ b/extensions/FlagDefaultRequestee/Extension.pm
@@ -7,7 +7,10 @@
package Bugzilla::Extension::FlagDefaultRequestee;
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::Error;
diff --git a/extensions/FlagDefaultRequestee/lib/Constants.pm b/extensions/FlagDefaultRequestee/lib/Constants.pm
index 467028423..fd7298484 100644
--- a/extensions/FlagDefaultRequestee/lib/Constants.pm
+++ b/extensions/FlagDefaultRequestee/lib/Constants.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::FlagDefaultRequestee::Constants;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Exporter);
diff --git a/extensions/FlagTypeComment/Config.pm b/extensions/FlagTypeComment/Config.pm
index e20be10e3..590ef4555 100644
--- a/extensions/FlagTypeComment/Config.pm
+++ b/extensions/FlagTypeComment/Config.pm
@@ -19,7 +19,10 @@
# byron jones <glob@mozilla.com>
package Bugzilla::Extension::FlagTypeComment;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'FlagTypeComment';
diff --git a/extensions/FlagTypeComment/Extension.pm b/extensions/FlagTypeComment/Extension.pm
index 8da6101ad..34cd4c460 100644
--- a/extensions/FlagTypeComment/Extension.pm
+++ b/extensions/FlagTypeComment/Extension.pm
@@ -19,7 +19,11 @@
# byron jones <glob@mozilla.com>
package Bugzilla::Extension::FlagTypeComment;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::Extension::FlagTypeComment::Constants;
diff --git a/extensions/FlagTypeComment/lib/Constants.pm b/extensions/FlagTypeComment/lib/Constants.pm
index e1a99e5b3..dcac4976a 100644
--- a/extensions/FlagTypeComment/lib/Constants.pm
+++ b/extensions/FlagTypeComment/lib/Constants.pm
@@ -19,7 +19,10 @@
# byron jones <glob@mozilla.com>
package Bugzilla::Extension::FlagTypeComment::Constants;
+
+use 5.10.1;
use strict;
+use warnings;
use base qw(Exporter);
our @EXPORT = qw(
diff --git a/extensions/GitHubAuth/Config.pm b/extensions/GitHubAuth/Config.pm
index 88186a91e..1f64ee8a6 100644
--- a/extensions/GitHubAuth/Config.pm
+++ b/extensions/GitHubAuth/Config.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::GitHubAuth;
use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'GitHubAuth';
diff --git a/extensions/GitHubAuth/Extension.pm b/extensions/GitHubAuth/Extension.pm
index b813689cd..24a7cf2f1 100644
--- a/extensions/GitHubAuth/Extension.pm
+++ b/extensions/GitHubAuth/Extension.pm
@@ -9,6 +9,8 @@ package Bugzilla::Extension::GitHubAuth;
use 5.10.1;
use strict;
+use warnings;
+
use parent qw(Bugzilla::Extension);
use Bugzilla::Extension::GitHubAuth::Client;
diff --git a/extensions/GitHubAuth/lib/Client.pm b/extensions/GitHubAuth/lib/Client.pm
index 77c8a6c61..46c070856 100644
--- a/extensions/GitHubAuth/lib/Client.pm
+++ b/extensions/GitHubAuth/lib/Client.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::GitHubAuth::Client;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/GitHubAuth/lib/Client/Error.pm b/extensions/GitHubAuth/lib/Client/Error.pm
index 358df6938..adb6ec07b 100644
--- a/extensions/GitHubAuth/lib/Client/Error.pm
+++ b/extensions/GitHubAuth/lib/Client/Error.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::GitHubAuth::Client::Error;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/GitHubAuth/lib/Config.pm b/extensions/GitHubAuth/lib/Config.pm
index 0dc78531b..0c8874129 100644
--- a/extensions/GitHubAuth/lib/Config.pm
+++ b/extensions/GitHubAuth/lib/Config.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::GitHubAuth::Config;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/GitHubAuth/lib/Login.pm b/extensions/GitHubAuth/lib/Login.pm
index f1effb4e1..3f81467d0 100644
--- a/extensions/GitHubAuth/lib/Login.pm
+++ b/extensions/GitHubAuth/lib/Login.pm
@@ -6,8 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::GitHubAuth::Login;
+
+use 5.10.1;
use strict;
use warnings;
+
use base qw(Bugzilla::Auth::Login);
use fields qw(github_failure);
diff --git a/extensions/GitHubAuth/lib/Verify.pm b/extensions/GitHubAuth/lib/Verify.pm
index ee66c8904..f399af02e 100644
--- a/extensions/GitHubAuth/lib/Verify.pm
+++ b/extensions/GitHubAuth/lib/Verify.pm
@@ -6,8 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::GitHubAuth::Verify;
+
+use 5.10.1;
use strict;
use warnings;
+
use base qw(Bugzilla::Auth::Verify);
use Bugzilla::Constants qw( AUTH_NO_SUCH_USER );
diff --git a/extensions/Gravatar/Config.pm b/extensions/Gravatar/Config.pm
index e15a41ee8..e0c684c9b 100644
--- a/extensions/Gravatar/Config.pm
+++ b/extensions/Gravatar/Config.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::Gravatar;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'Gravatar';
use constant REQUIRED_MODULES => [];
diff --git a/extensions/Gravatar/Extension.pm b/extensions/Gravatar/Extension.pm
index 06e98fb78..97cf23b00 100644
--- a/extensions/Gravatar/Extension.pm
+++ b/extensions/Gravatar/Extension.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Gravatar;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Gravatar/lib/Data.pm b/extensions/Gravatar/lib/Data.pm
index feff503e3..763dba85b 100644
--- a/extensions/Gravatar/lib/Data.pm
+++ b/extensions/Gravatar/lib/Data.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Gravatar::Data;
+
+use 5.10.1;
use strict;
+use warnings;
use base 'Exporter';
our @EXPORT_OK = qw(
diff --git a/extensions/GuidedBugEntry/Config.pm b/extensions/GuidedBugEntry/Config.pm
index e4bc9c70b..316fc6cdc 100644
--- a/extensions/GuidedBugEntry/Config.pm
+++ b/extensions/GuidedBugEntry/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::GuidedBugEntry;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'GuidedBugEntry';
diff --git a/extensions/GuidedBugEntry/Extension.pm b/extensions/GuidedBugEntry/Extension.pm
index 3f739d9fe..2d58d506a 100644
--- a/extensions/GuidedBugEntry/Extension.pm
+++ b/extensions/GuidedBugEntry/Extension.pm
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::GuidedBugEntry;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::Token;
diff --git a/extensions/InlineHistory/Config.pm b/extensions/InlineHistory/Config.pm
index 3834bd81d..56197487b 100644
--- a/extensions/InlineHistory/Config.pm
+++ b/extensions/InlineHistory/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::InlineHistory;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'InlineHistory';
diff --git a/extensions/InlineHistory/Extension.pm b/extensions/InlineHistory/Extension.pm
index d563bede8..fb4a8f98f 100644
--- a/extensions/InlineHistory/Extension.pm
+++ b/extensions/InlineHistory/Extension.pm
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::InlineHistory;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::User::Setting;
diff --git a/extensions/LastResolved/Config.pm b/extensions/LastResolved/Config.pm
index f763167e2..8fd8f106f 100644
--- a/extensions/LastResolved/Config.pm
+++ b/extensions/LastResolved/Config.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::LastResolved;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'LastResolved';
diff --git a/extensions/LastResolved/Extension.pm b/extensions/LastResolved/Extension.pm
index ad0519387..0c3741b84 100644
--- a/extensions/LastResolved/Extension.pm
+++ b/extensions/LastResolved/Extension.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::LastResolved;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Extension);
diff --git a/extensions/LimitedEmail/Config.pm b/extensions/LimitedEmail/Config.pm
index ea05f363c..94b9b10eb 100644
--- a/extensions/LimitedEmail/Config.pm
+++ b/extensions/LimitedEmail/Config.pm
@@ -7,7 +7,10 @@
package Bugzilla::Extension::LimitedEmail;
+use 5.10.1;
use strict;
+use warnings;
+
use constant NAME => 'LimitedEmail';
use constant REQUIRED_MODULES => [ ];
use constant OPTIONAL_MODULES => [ ];
diff --git a/extensions/LimitedEmail/Extension.pm b/extensions/LimitedEmail/Extension.pm
index 35cc83567..9b504db91 100644
--- a/extensions/LimitedEmail/Extension.pm
+++ b/extensions/LimitedEmail/Extension.pm
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::LimitedEmail;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
our $VERSION = '2';
diff --git a/extensions/MozProjectReview/Config.pm b/extensions/MozProjectReview/Config.pm
index 5a9d2b730..1a5e14f3d 100644
--- a/extensions/MozProjectReview/Config.pm
+++ b/extensions/MozProjectReview/Config.pm
@@ -6,7 +6,9 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::MozProjectReview;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'MozProjectReview';
diff --git a/extensions/MozProjectReview/Extension.pm b/extensions/MozProjectReview/Extension.pm
index 7229f5d4d..fcad6916c 100644
--- a/extensions/MozProjectReview/Extension.pm
+++ b/extensions/MozProjectReview/Extension.pm
@@ -6,7 +6,9 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::MozProjectReview;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Extension);
diff --git a/extensions/MozReview/Config.pm b/extensions/MozReview/Config.pm
index 44d8dd2ff..34d98907c 100644
--- a/extensions/MozReview/Config.pm
+++ b/extensions/MozReview/Config.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::MozReview;
use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'MozReview';
diff --git a/extensions/MozReview/bin/add-mozreview-children.pl b/extensions/MozReview/bin/add-mozreview-children.pl
index a63966a62..f92c2a19b 100755
--- a/extensions/MozReview/bin/add-mozreview-children.pl
+++ b/extensions/MozReview/bin/add-mozreview-children.pl
@@ -15,7 +15,7 @@ use strict;
use warnings;
use FindBin qw($RealBin);
-use lib "$RealBin/../../..";
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
BEGIN {
use Bugzilla;
diff --git a/extensions/MozReview/lib/Config.pm b/extensions/MozReview/lib/Config.pm
index ab6b8c7c3..e0d6377d8 100644
--- a/extensions/MozReview/lib/Config.pm
+++ b/extensions/MozReview/lib/Config.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::MozReview::Config;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/MozReview/lib/WebService.pm b/extensions/MozReview/lib/WebService.pm
index 8f9d3215b..c6916d1fa 100644
--- a/extensions/MozReview/lib/WebService.pm
+++ b/extensions/MozReview/lib/WebService.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::MozReview::WebService;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/MyDashboard/Config.pm b/extensions/MyDashboard/Config.pm
index 7c14936ff..05f3ec416 100644
--- a/extensions/MyDashboard/Config.pm
+++ b/extensions/MyDashboard/Config.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::MyDashboard;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'MyDashboard';
diff --git a/extensions/MyDashboard/Extension.pm b/extensions/MyDashboard/Extension.pm
index 97b1d9d14..5278cfaa4 100644
--- a/extensions/MyDashboard/Extension.pm
+++ b/extensions/MyDashboard/Extension.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::MyDashboard;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Extension);
diff --git a/extensions/MyDashboard/lib/BugInterest.pm b/extensions/MyDashboard/lib/BugInterest.pm
index 4f14eb4fd..cf33900c5 100644
--- a/extensions/MyDashboard/lib/BugInterest.pm
+++ b/extensions/MyDashboard/lib/BugInterest.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::MyDashboard::BugInterest;
use 5.10.1;
use strict;
+use warnings;
use parent qw(Bugzilla::Object);
diff --git a/extensions/MyDashboard/lib/Queries.pm b/extensions/MyDashboard/lib/Queries.pm
index 199e8eb46..d77be7da4 100644
--- a/extensions/MyDashboard/lib/Queries.pm
+++ b/extensions/MyDashboard/lib/Queries.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::MyDashboard::Queries;
+use 5.10.1;
use strict;
+use warnings;
use Bugzilla;
use Bugzilla::Bug;
diff --git a/extensions/MyDashboard/lib/Util.pm b/extensions/MyDashboard/lib/Util.pm
index fa7cf83b0..77d9505cb 100644
--- a/extensions/MyDashboard/lib/Util.pm
+++ b/extensions/MyDashboard/lib/Util.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::MyDashboard::Util;
+use 5.10.1;
use strict;
+use warnings;
use Bugzilla::CGI;
use Bugzilla::Search;
diff --git a/extensions/MyDashboard/lib/WebService.pm b/extensions/MyDashboard/lib/WebService.pm
index c93553146..7e5ce05cf 100644
--- a/extensions/MyDashboard/lib/WebService.pm
+++ b/extensions/MyDashboard/lib/WebService.pm
@@ -6,6 +6,7 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::MyDashboard::WebService;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Needinfo/Config.pm b/extensions/Needinfo/Config.pm
index 86c99ec59..d523d9d78 100644
--- a/extensions/Needinfo/Config.pm
+++ b/extensions/Needinfo/Config.pm
@@ -5,7 +5,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Needinfo;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'Needinfo';
diff --git a/extensions/Needinfo/Extension.pm b/extensions/Needinfo/Extension.pm
index a85bad5c6..cb897e72e 100644
--- a/extensions/Needinfo/Extension.pm
+++ b/extensions/Needinfo/Extension.pm
@@ -6,7 +6,9 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Needinfo;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Extension);
diff --git a/extensions/OpenGraph/Config.pm b/extensions/OpenGraph/Config.pm
index 9204db234..92d0a89bc 100644
--- a/extensions/OpenGraph/Config.pm
+++ b/extensions/OpenGraph/Config.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::OpenGraph;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'OpenGraph';
use constant REQUIRED_MODULES => [ ];
diff --git a/extensions/OpenGraph/Extension.pm b/extensions/OpenGraph/Extension.pm
index f278a8958..18ee2c22f 100644
--- a/extensions/OpenGraph/Extension.pm
+++ b/extensions/OpenGraph/Extension.pm
@@ -7,7 +7,11 @@
package Bugzilla::Extension::OpenGraph;
+use 5.10.1;
use strict;
+use warnings;
+
+use lib qw(. lib local/lib/perl5);
use base qw(Bugzilla::Extension);
diff --git a/extensions/OrangeFactor/Config.pm b/extensions/OrangeFactor/Config.pm
index 9fb0d74ef..18c6be1cd 100644
--- a/extensions/OrangeFactor/Config.pm
+++ b/extensions/OrangeFactor/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::OrangeFactor;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'OrangeFactor';
diff --git a/extensions/OrangeFactor/Extension.pm b/extensions/OrangeFactor/Extension.pm
index 5e9698718..ab2f1d749 100644
--- a/extensions/OrangeFactor/Extension.pm
+++ b/extensions/OrangeFactor/Extension.pm
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::OrangeFactor;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::User::Setting;
diff --git a/extensions/Persona/Config.pm b/extensions/Persona/Config.pm
index 8709655d1..a839b38ab 100644
--- a/extensions/Persona/Config.pm
+++ b/extensions/Persona/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Persona;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'Persona';
diff --git a/extensions/Persona/Extension.pm b/extensions/Persona/Extension.pm
index 2c8e46add..61e222f53 100644
--- a/extensions/Persona/Extension.pm
+++ b/extensions/Persona/Extension.pm
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Persona;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::Config qw(SetParam write_params);
diff --git a/extensions/Persona/lib/Config.pm b/extensions/Persona/lib/Config.pm
index 9c483cb51..ae40fd94a 100644
--- a/extensions/Persona/lib/Config.pm
+++ b/extensions/Persona/lib/Config.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Persona::Config;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Persona/lib/Login.pm b/extensions/Persona/lib/Login.pm
index c2f8caf2b..b9ba97a7e 100644
--- a/extensions/Persona/lib/Login.pm
+++ b/extensions/Persona/lib/Login.pm
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Persona::Login;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Auth::Login);
use Bugzilla::Constants;
diff --git a/extensions/ProdCompSearch/Config.pm b/extensions/ProdCompSearch/Config.pm
index c28b6d8f6..9631de570 100644
--- a/extensions/ProdCompSearch/Config.pm
+++ b/extensions/ProdCompSearch/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::ProdCompSearch;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'ProdCompSearch';
use constant REQUIRED_MODULES => [];
diff --git a/extensions/ProdCompSearch/Extension.pm b/extensions/ProdCompSearch/Extension.pm
index a5955fd8b..ae507a7d6 100644
--- a/extensions/ProdCompSearch/Extension.pm
+++ b/extensions/ProdCompSearch/Extension.pm
@@ -6,7 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::ProdCompSearch;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
our $VERSION = '1';
diff --git a/extensions/ProdCompSearch/lib/WebService.pm b/extensions/ProdCompSearch/lib/WebService.pm
index 521d1588f..b173137dd 100644
--- a/extensions/ProdCompSearch/lib/WebService.pm
+++ b/extensions/ProdCompSearch/lib/WebService.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::ProdCompSearch::WebService;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/ProductDashboard/Config.pm b/extensions/ProductDashboard/Config.pm
index 3a4654974..88ccdc784 100644
--- a/extensions/ProductDashboard/Config.pm
+++ b/extensions/ProductDashboard/Config.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::ProductDashboard;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'ProductDashboard';
diff --git a/extensions/ProductDashboard/Extension.pm b/extensions/ProductDashboard/Extension.pm
index cc80fa449..18157c1fe 100644
--- a/extensions/ProductDashboard/Extension.pm
+++ b/extensions/ProductDashboard/Extension.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::ProductDashboard;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Extension);
diff --git a/extensions/ProductDashboard/lib/Queries.pm b/extensions/ProductDashboard/lib/Queries.pm
index ec27d3c6c..8c9d5bd92 100644
--- a/extensions/ProductDashboard/lib/Queries.pm
+++ b/extensions/ProductDashboard/lib/Queries.pm
@@ -6,7 +6,9 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::ProductDashboard::Queries;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Exporter);
@Bugzilla::Extension::ProductDashboard::Queries::EXPORT = qw(
diff --git a/extensions/ProductDashboard/lib/Util.pm b/extensions/ProductDashboard/lib/Util.pm
index 5d9c161ef..f02f033b2 100644
--- a/extensions/ProductDashboard/lib/Util.pm
+++ b/extensions/ProductDashboard/lib/Util.pm
@@ -6,7 +6,9 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::ProductDashboard::Util;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Exporter);
@Bugzilla::Extension::ProductDashboard::Util::EXPORT = qw(
diff --git a/extensions/Profanivore/Config.pm b/extensions/Profanivore/Config.pm
index 354325c58..311400d16 100644
--- a/extensions/Profanivore/Config.pm
+++ b/extensions/Profanivore/Config.pm
@@ -20,7 +20,10 @@
# Gervase Markham <gerv@gerv.net>
package Bugzilla::Extension::Profanivore;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'Profanivore';
diff --git a/extensions/Profanivore/Extension.pm b/extensions/Profanivore/Extension.pm
index 49b2f61c3..76d30e982 100644
--- a/extensions/Profanivore/Extension.pm
+++ b/extensions/Profanivore/Extension.pm
@@ -20,7 +20,11 @@
# Gervase Markham <gerv@gerv.net>
package Bugzilla::Extension::Profanivore;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Email::MIME::ContentType qw(parse_content_type);
diff --git a/extensions/Push/Config.pm b/extensions/Push/Config.pm
index 11e3502fd..860e31a23 100644
--- a/extensions/Push/Config.pm
+++ b/extensions/Push/Config.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::Push;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'Push';
diff --git a/extensions/Push/Extension.pm b/extensions/Push/Extension.pm
index 1d6ec5b62..f682dea35 100644
--- a/extensions/Push/Extension.pm
+++ b/extensions/Push/Extension.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/bin/bugzilla-pushd.pl b/extensions/Push/bin/bugzilla-pushd.pl
index f048df157..8e92381f3 100755
--- a/extensions/Push/bin/bugzilla-pushd.pl
+++ b/extensions/Push/bin/bugzilla-pushd.pl
@@ -10,10 +10,8 @@
use strict;
use warnings;
-use FindBin '$RealBin';
-use lib "$RealBin/../../..";
-use lib "$RealBin/../../../lib";
-use lib "$RealBin/../lib";
+use FindBin qw($RealBin);
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
BEGIN {
use Bugzilla;
diff --git a/extensions/Push/bin/nagios_push_checker.pl b/extensions/Push/bin/nagios_push_checker.pl
index f022f584d..092a9da8f 100755
--- a/extensions/Push/bin/nagios_push_checker.pl
+++ b/extensions/Push/bin/nagios_push_checker.pl
@@ -10,10 +10,8 @@
use strict;
use warnings;
-use FindBin '$RealBin';
-use lib "$RealBin/../../..";
-use lib "$RealBin/../../../lib";
-use lib "$RealBin/../lib";
+use FindBin qw($RealBin);
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
use Bugzilla;
use Bugzilla::Constants;
diff --git a/extensions/Push/lib/Admin.pm b/extensions/Push/lib/Admin.pm
index 5b0bb8e70..fa65e0d69 100644
--- a/extensions/Push/lib/Admin.pm
+++ b/extensions/Push/lib/Admin.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Admin;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/BacklogMessage.pm b/extensions/Push/lib/BacklogMessage.pm
index cd40ebefb..28b17bae3 100644
--- a/extensions/Push/lib/BacklogMessage.pm
+++ b/extensions/Push/lib/BacklogMessage.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::BacklogMessage;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/BacklogQueue.pm b/extensions/Push/lib/BacklogQueue.pm
index 79b9b72ee..a7200c688 100644
--- a/extensions/Push/lib/BacklogQueue.pm
+++ b/extensions/Push/lib/BacklogQueue.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::BacklogQueue;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Backoff.pm b/extensions/Push/lib/Backoff.pm
index 55552e5e1..f0116a2a7 100644
--- a/extensions/Push/lib/Backoff.pm
+++ b/extensions/Push/lib/Backoff.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Backoff;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Config.pm b/extensions/Push/lib/Config.pm
index 7033b4195..337c2696d 100644
--- a/extensions/Push/lib/Config.pm
+++ b/extensions/Push/lib/Config.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Config;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Connector.disabled/AMQP.pm b/extensions/Push/lib/Connector.disabled/AMQP.pm
index 7b7d4aa72..f712ee890 100644
--- a/extensions/Push/lib/Connector.disabled/AMQP.pm
+++ b/extensions/Push/lib/Connector.disabled/AMQP.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Connector::AMQP;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Connector.disabled/ServiceNow.pm b/extensions/Push/lib/Connector.disabled/ServiceNow.pm
index 832cc9262..a6d84cbe0 100644
--- a/extensions/Push/lib/Connector.disabled/ServiceNow.pm
+++ b/extensions/Push/lib/Connector.disabled/ServiceNow.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Connector::ServiceNow;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Connector/Aha.pm b/extensions/Push/lib/Connector/Aha.pm
index b64610e03..e85b5fadf 100644
--- a/extensions/Push/lib/Connector/Aha.pm
+++ b/extensions/Push/lib/Connector/Aha.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Connector::Aha;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Connector/Base.pm b/extensions/Push/lib/Connector/Base.pm
index 290ea9740..ee41bd160 100644
--- a/extensions/Push/lib/Connector/Base.pm
+++ b/extensions/Push/lib/Connector/Base.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Connector::Base;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Connector/File.pm b/extensions/Push/lib/Connector/File.pm
index 563a78567..ae249ffe5 100644
--- a/extensions/Push/lib/Connector/File.pm
+++ b/extensions/Push/lib/Connector/File.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Connector::File;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Connector/ReviewBoard.pm b/extensions/Push/lib/Connector/ReviewBoard.pm
index 97f489826..1c657a728 100644
--- a/extensions/Push/lib/Connector/ReviewBoard.pm
+++ b/extensions/Push/lib/Connector/ReviewBoard.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Connector::ReviewBoard;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Connector/Spark.pm b/extensions/Push/lib/Connector/Spark.pm
index a65567916..3194bd3ab 100644
--- a/extensions/Push/lib/Connector/Spark.pm
+++ b/extensions/Push/lib/Connector/Spark.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Connector::Spark;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Connector/TCL.pm b/extensions/Push/lib/Connector/TCL.pm
index 25e5750dc..f5b430e47 100644
--- a/extensions/Push/lib/Connector/TCL.pm
+++ b/extensions/Push/lib/Connector/TCL.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Connector::TCL;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Connectors.pm b/extensions/Push/lib/Connectors.pm
index 026d3f7f1..75a5083ff 100644
--- a/extensions/Push/lib/Connectors.pm
+++ b/extensions/Push/lib/Connectors.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Connectors;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Constants.pm b/extensions/Push/lib/Constants.pm
index 18b12d511..09c5e464c 100644
--- a/extensions/Push/lib/Constants.pm
+++ b/extensions/Push/lib/Constants.pm
@@ -7,7 +7,10 @@
package Bugzilla::Extension::Push::Constants;
+use 5.10.1;
use strict;
+use warnings;
+
use base 'Exporter';
our @EXPORT = qw(
diff --git a/extensions/Push/lib/Daemon.pm b/extensions/Push/lib/Daemon.pm
index c8472e450..7f2459a95 100644
--- a/extensions/Push/lib/Daemon.pm
+++ b/extensions/Push/lib/Daemon.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Daemon;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Log.pm b/extensions/Push/lib/Log.pm
index 6faabea97..8a35a6cf5 100644
--- a/extensions/Push/lib/Log.pm
+++ b/extensions/Push/lib/Log.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Log;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/LogEntry.pm b/extensions/Push/lib/LogEntry.pm
index 848df0480..f4e894b94 100644
--- a/extensions/Push/lib/LogEntry.pm
+++ b/extensions/Push/lib/LogEntry.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::LogEntry;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Logger.pm b/extensions/Push/lib/Logger.pm
index 9824f3476..833cb3b19 100644
--- a/extensions/Push/lib/Logger.pm
+++ b/extensions/Push/lib/Logger.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Logger;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Message.pm b/extensions/Push/lib/Message.pm
index 6d2ed2531..1beb18ef0 100644
--- a/extensions/Push/lib/Message.pm
+++ b/extensions/Push/lib/Message.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Message;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Option.pm b/extensions/Push/lib/Option.pm
index 25d529f98..a08e4c11d 100644
--- a/extensions/Push/lib/Option.pm
+++ b/extensions/Push/lib/Option.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Option;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Push.pm b/extensions/Push/lib/Push.pm
index aaac0bbd6..45b9b05dd 100644
--- a/extensions/Push/lib/Push.pm
+++ b/extensions/Push/lib/Push.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Push;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Queue.pm b/extensions/Push/lib/Queue.pm
index d89cb23c3..3ee0321d9 100644
--- a/extensions/Push/lib/Queue.pm
+++ b/extensions/Push/lib/Queue.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Queue;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Serialise.pm b/extensions/Push/lib/Serialise.pm
index 94f33c754..bb6834c13 100644
--- a/extensions/Push/lib/Serialise.pm
+++ b/extensions/Push/lib/Serialise.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Serialise;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Push/lib/Util.pm b/extensions/Push/lib/Util.pm
index f52db6936..bda6331bf 100644
--- a/extensions/Push/lib/Util.pm
+++ b/extensions/Push/lib/Util.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Push::Util;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/REMO/Config.pm b/extensions/REMO/Config.pm
index 625e2afd9..3317ebc05 100644
--- a/extensions/REMO/Config.pm
+++ b/extensions/REMO/Config.pm
@@ -21,7 +21,10 @@
# David Lawrence <dkl@mozilla.com>
package Bugzilla::Extension::REMO;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'REMO';
diff --git a/extensions/REMO/Extension.pm b/extensions/REMO/Extension.pm
index 9f83f7065..695f126f8 100644
--- a/extensions/REMO/Extension.pm
+++ b/extensions/REMO/Extension.pm
@@ -21,7 +21,11 @@
# David Lawrence <dkl@mozilla.com>
package Bugzilla::Extension::REMO;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::Constants;
diff --git a/extensions/RequestNagger/Config.pm b/extensions/RequestNagger/Config.pm
index 6b9488c80..a338cd441 100644
--- a/extensions/RequestNagger/Config.pm
+++ b/extensions/RequestNagger/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::RequestNagger;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'RequestNagger';
use constant REQUIRED_MODULES => [ ];
diff --git a/extensions/RequestNagger/Extension.pm b/extensions/RequestNagger/Extension.pm
index 63d79040e..65f5e6b84 100644
--- a/extensions/RequestNagger/Extension.pm
+++ b/extensions/RequestNagger/Extension.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::RequestNagger;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/RequestNagger/bin/send-request-nags.pl b/extensions/RequestNagger/bin/send-request-nags.pl
index 03ff8b4ea..b3c654956 100755
--- a/extensions/RequestNagger/bin/send-request-nags.pl
+++ b/extensions/RequestNagger/bin/send-request-nags.pl
@@ -11,7 +11,7 @@ use strict;
use warnings;
use FindBin qw($RealBin);
-use lib "$RealBin/../../..";
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
use Bugzilla;
BEGIN { Bugzilla->extensions() }
diff --git a/extensions/RequestNagger/lib/Bug.pm b/extensions/RequestNagger/lib/Bug.pm
index bd5bb7fd7..974a688ea 100644
--- a/extensions/RequestNagger/lib/Bug.pm
+++ b/extensions/RequestNagger/lib/Bug.pm
@@ -7,7 +7,10 @@
package Bugzilla::Extension::RequestNagger::Bug;
+use 5.10.1;
use strict;
+use warnings;
+
use parent qw(Bugzilla::Bug);
use feature 'state';
diff --git a/extensions/RequestNagger/lib/Constants.pm b/extensions/RequestNagger/lib/Constants.pm
index 435c0b167..bc6cf3371 100644
--- a/extensions/RequestNagger/lib/Constants.pm
+++ b/extensions/RequestNagger/lib/Constants.pm
@@ -7,7 +7,10 @@
package Bugzilla::Extension::RequestNagger::Constants;
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Exporter);
our @EXPORT = qw(
diff --git a/extensions/RequestNagger/lib/Settings.pm b/extensions/RequestNagger/lib/Settings.pm
index 5407eac1d..393d224ba 100644
--- a/extensions/RequestNagger/lib/Settings.pm
+++ b/extensions/RequestNagger/lib/Settings.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::RequestNagger::Settings;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/RestrictComments/Config.pm b/extensions/RestrictComments/Config.pm
index bef472cc1..be703bed7 100644
--- a/extensions/RestrictComments/Config.pm
+++ b/extensions/RestrictComments/Config.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::RestrictComments;
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'RestrictComments';
use constant REQUIRED_MODULES => [];
diff --git a/extensions/RestrictComments/Extension.pm b/extensions/RestrictComments/Extension.pm
index 61a4912b3..213a1c44a 100644
--- a/extensions/RestrictComments/Extension.pm
+++ b/extensions/RestrictComments/Extension.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::RestrictComments;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/RestrictComments/lib/Config.pm b/extensions/RestrictComments/lib/Config.pm
index 33607e680..55cf11187 100644
--- a/extensions/RestrictComments/lib/Config.pm
+++ b/extensions/RestrictComments/lib/Config.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::RestrictComments::Config;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Review/Config.pm b/extensions/Review/Config.pm
index f7da458af..ea7e8a725 100644
--- a/extensions/Review/Config.pm
+++ b/extensions/Review/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Review;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'Review';
use constant REQUIRED_MODULES => [];
diff --git a/extensions/Review/Extension.pm b/extensions/Review/Extension.pm
index 4fd965b4c..db2b475a1 100644
--- a/extensions/Review/Extension.pm
+++ b/extensions/Review/Extension.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Review;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Review/bin/migrate_mentor_from_whiteboard.pl b/extensions/Review/bin/migrate_mentor_from_whiteboard.pl
index 8d34963ec..ff109a5af 100755
--- a/extensions/Review/bin/migrate_mentor_from_whiteboard.pl
+++ b/extensions/Review/bin/migrate_mentor_from_whiteboard.pl
@@ -13,7 +13,7 @@ use warnings;
$| = 1;
use FindBin qw($RealBin);
-use lib "$RealBin/../../..";
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
use Bugzilla;
BEGIN { Bugzilla->extensions() }
diff --git a/extensions/Review/bin/review_requests_rebuild.pl b/extensions/Review/bin/review_requests_rebuild.pl
index 04f8b1042..6574f3dbe 100755
--- a/extensions/Review/bin/review_requests_rebuild.pl
+++ b/extensions/Review/bin/review_requests_rebuild.pl
@@ -11,8 +11,8 @@ use strict;
use warnings;
$| = 1;
-use FindBin qw($Bin);
-use lib "$Bin/../../..";
+use FindBin qw($RealBin);
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
use Bugzilla;
BEGIN { Bugzilla->extensions() }
diff --git a/extensions/Review/lib/FlagStateActivity.pm b/extensions/Review/lib/FlagStateActivity.pm
index 46e9300a5..35da42351 100644
--- a/extensions/Review/lib/FlagStateActivity.pm
+++ b/extensions/Review/lib/FlagStateActivity.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Review::FlagStateActivity;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Review/lib/Util.pm b/extensions/Review/lib/Util.pm
index c00e31b6b..a8744079d 100644
--- a/extensions/Review/lib/Util.pm
+++ b/extensions/Review/lib/Util.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Review::Util;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Review/lib/WebService.pm b/extensions/Review/lib/WebService.pm
index c4421aca1..ea8910d50 100644
--- a/extensions/Review/lib/WebService.pm
+++ b/extensions/Review/lib/WebService.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::Review::WebService;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/SecureMail/Config.pm b/extensions/SecureMail/Config.pm
index f1975c1c1..8d877a253 100644
--- a/extensions/SecureMail/Config.pm
+++ b/extensions/SecureMail/Config.pm
@@ -20,7 +20,10 @@
# Gervase Markham <gerv@gerv.net>
package Bugzilla::Extension::SecureMail;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'SecureMail';
diff --git a/extensions/SecureMail/Extension.pm b/extensions/SecureMail/Extension.pm
index 3b03f33a6..e62938dc7 100644
--- a/extensions/SecureMail/Extension.pm
+++ b/extensions/SecureMail/Extension.pm
@@ -20,7 +20,11 @@
# Gervase Markham <gerv@gerv.net>
package Bugzilla::Extension::SecureMail;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use Bugzilla::Attachment;
diff --git a/extensions/SiteMapIndex/Config.pm b/extensions/SiteMapIndex/Config.pm
index e10d6ec8b..980938503 100644
--- a/extensions/SiteMapIndex/Config.pm
+++ b/extensions/SiteMapIndex/Config.pm
@@ -21,7 +21,10 @@
# Dave Lawrence <dkl@mozilla.com>
package Bugzilla::Extension::SiteMapIndex;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'SiteMapIndex';
diff --git a/extensions/SiteMapIndex/Extension.pm b/extensions/SiteMapIndex/Extension.pm
index 77fb6b54c..901b80092 100644
--- a/extensions/SiteMapIndex/Extension.pm
+++ b/extensions/SiteMapIndex/Extension.pm
@@ -21,7 +21,11 @@
# Dave Lawrence <dkl@mozilla.com>
package Bugzilla::Extension::SiteMapIndex;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
our $VERSION = '1.0';
diff --git a/extensions/SiteMapIndex/lib/Constants.pm b/extensions/SiteMapIndex/lib/Constants.pm
index fce858121..12f11597e 100644
--- a/extensions/SiteMapIndex/lib/Constants.pm
+++ b/extensions/SiteMapIndex/lib/Constants.pm
@@ -20,7 +20,11 @@
# Max Kanat-Alexander <mkanat@bugzilla.org>
package Bugzilla::Extension::SiteMapIndex::Constants;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Exporter);
our @EXPORT = qw(
SITEMAP_AGE
diff --git a/extensions/SiteMapIndex/lib/Util.pm b/extensions/SiteMapIndex/lib/Util.pm
index 5c02a5989..38fe1cf80 100644
--- a/extensions/SiteMapIndex/lib/Util.pm
+++ b/extensions/SiteMapIndex/lib/Util.pm
@@ -21,7 +21,11 @@
# Dave Lawrence <dkl@mozilla.com>
package Bugzilla::Extension::SiteMapIndex::Util;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Exporter);
our @EXPORT = qw(
generate_sitemap
diff --git a/extensions/Splinter/Config.pm b/extensions/Splinter/Config.pm
index d36a28922..7c013bc6f 100644
--- a/extensions/Splinter/Config.pm
+++ b/extensions/Splinter/Config.pm
@@ -1,5 +1,9 @@
package Bugzilla::Extension::Splinter;
+
+use 5.10.1;
use strict;
+use warnings;
+
use constant NAME => 'Splinter';
__PACKAGE__->NAME;
diff --git a/extensions/Splinter/Extension.pm b/extensions/Splinter/Extension.pm
index 42a18d912..e0f42b8d0 100644
--- a/extensions/Splinter/Extension.pm
+++ b/extensions/Splinter/Extension.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::Splinter;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Extension);
diff --git a/extensions/Splinter/lib/Config.pm b/extensions/Splinter/lib/Config.pm
index 95b9f5dfa..fb3c16074 100644
--- a/extensions/Splinter/lib/Config.pm
+++ b/extensions/Splinter/lib/Config.pm
@@ -22,6 +22,7 @@
package Bugzilla::Extension::Splinter::Config;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Splinter/lib/Util.pm b/extensions/Splinter/lib/Util.pm
index 6421d2f0b..a24881c1d 100644
--- a/extensions/Splinter/lib/Util.pm
+++ b/extensions/Splinter/lib/Util.pm
@@ -21,7 +21,9 @@
package Bugzilla::Extension::Splinter::Util;
+use 5.10.1;
use strict;
+use warnings;
use Bugzilla;
use Bugzilla::Util;
diff --git a/extensions/TagNewUsers/Config.pm b/extensions/TagNewUsers/Config.pm
index c2330afc8..c791e3a07 100644
--- a/extensions/TagNewUsers/Config.pm
+++ b/extensions/TagNewUsers/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::TagNewUsers;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'TagNewUsers';
use constant REQUIRED_MODULES => [ ];
diff --git a/extensions/TagNewUsers/Extension.pm b/extensions/TagNewUsers/Extension.pm
index e4a62dac8..b94873979 100644
--- a/extensions/TagNewUsers/Extension.pm
+++ b/extensions/TagNewUsers/Extension.pm
@@ -6,12 +6,18 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::TagNewUsers;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
+
use Bugzilla::Field;
use Bugzilla::User;
use Bugzilla::Install::Util qw(indicate_progress);
use Bugzilla::WebService::Util qw(filter_wants);
+
use Date::Parse;
use Scalar::Util qw(blessed);
diff --git a/extensions/TrackingFlags/Config.pm b/extensions/TrackingFlags/Config.pm
index 1854cb9fd..d0bc5ca20 100644
--- a/extensions/TrackingFlags/Config.pm
+++ b/extensions/TrackingFlags/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::TrackingFlags;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'TrackingFlags';
diff --git a/extensions/TrackingFlags/Extension.pm b/extensions/TrackingFlags/Extension.pm
index 08e7968a0..5f6715fc8 100644
--- a/extensions/TrackingFlags/Extension.pm
+++ b/extensions/TrackingFlags/Extension.pm
@@ -7,7 +7,9 @@
package Bugzilla::Extension::TrackingFlags;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Extension);
diff --git a/extensions/TrackingFlags/bin/bug_825946.pl b/extensions/TrackingFlags/bin/bug_825946.pl
index 2531228de..8f48a671a 100755
--- a/extensions/TrackingFlags/bin/bug_825946.pl
+++ b/extensions/TrackingFlags/bin/bug_825946.pl
@@ -10,7 +10,7 @@ use strict;
use warnings;
use FindBin qw($RealBin);
-use lib "$RealBin/../../..";
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
BEGIN {
use Bugzilla;
diff --git a/extensions/TrackingFlags/bin/bulk_flag_clear.pl b/extensions/TrackingFlags/bin/bulk_flag_clear.pl
index 1eff355fe..6b05a50a3 100755
--- a/extensions/TrackingFlags/bin/bulk_flag_clear.pl
+++ b/extensions/TrackingFlags/bin/bulk_flag_clear.pl
@@ -9,10 +9,8 @@
use strict;
use warnings;
-use FindBin '$RealBin';
-use lib "$RealBin/../../..";
-use lib "$RealBin/../../../lib";
-use lib "$RealBin/../lib";
+use FindBin qw($RealBin);
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
BEGIN {
use Bugzilla;
diff --git a/extensions/TrackingFlags/bin/migrate_tracking_flags.pl b/extensions/TrackingFlags/bin/migrate_tracking_flags.pl
index 06b3596c4..bca03f9f9 100755
--- a/extensions/TrackingFlags/bin/migrate_tracking_flags.pl
+++ b/extensions/TrackingFlags/bin/migrate_tracking_flags.pl
@@ -12,10 +12,8 @@
use strict;
use warnings;
-use FindBin '$RealBin';
-use lib "$RealBin/../../..";
-use lib "$RealBin/../../../lib";
-use lib "$RealBin/../lib";
+use FindBin qw($RealBin);
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
BEGIN {
use Bugzilla;
diff --git a/extensions/TrackingFlags/lib/Admin.pm b/extensions/TrackingFlags/lib/Admin.pm
index 1adcad241..50a0e0a61 100644
--- a/extensions/TrackingFlags/lib/Admin.pm
+++ b/extensions/TrackingFlags/lib/Admin.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::TrackingFlags::Admin;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/TrackingFlags/lib/Constants.pm b/extensions/TrackingFlags/lib/Constants.pm
index 0b1ae3a1a..00827aa7a 100644
--- a/extensions/TrackingFlags/lib/Constants.pm
+++ b/extensions/TrackingFlags/lib/Constants.pm
@@ -7,7 +7,10 @@
package Bugzilla::Extension::TrackingFlags::Constants;
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Exporter);
our @EXPORT = qw(
diff --git a/extensions/TrackingFlags/lib/Flag.pm b/extensions/TrackingFlags/lib/Flag.pm
index 7b6effa98..82c0314e3 100644
--- a/extensions/TrackingFlags/lib/Flag.pm
+++ b/extensions/TrackingFlags/lib/Flag.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::TrackingFlags::Flag;
use base qw(Bugzilla::Object);
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/TrackingFlags/lib/Flag/Bug.pm b/extensions/TrackingFlags/lib/Flag/Bug.pm
index 74b2814fa..7be661720 100644
--- a/extensions/TrackingFlags/lib/Flag/Bug.pm
+++ b/extensions/TrackingFlags/lib/Flag/Bug.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::TrackingFlags::Flag::Bug;
use base qw(Bugzilla::Object);
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/TrackingFlags/lib/Flag/Value.pm b/extensions/TrackingFlags/lib/Flag/Value.pm
index 15be61bc7..4f2aacc3a 100644
--- a/extensions/TrackingFlags/lib/Flag/Value.pm
+++ b/extensions/TrackingFlags/lib/Flag/Value.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::TrackingFlags::Flag::Value;
use base qw(Bugzilla::Object);
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/TrackingFlags/lib/Flag/Visibility.pm b/extensions/TrackingFlags/lib/Flag/Visibility.pm
index 7600d71bd..878c16f99 100644
--- a/extensions/TrackingFlags/lib/Flag/Visibility.pm
+++ b/extensions/TrackingFlags/lib/Flag/Visibility.pm
@@ -9,6 +9,7 @@ package Bugzilla::Extension::TrackingFlags::Flag::Visibility;
use base qw(Bugzilla::Object);
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/TypeSniffer/Config.pm b/extensions/TypeSniffer/Config.pm
index 6ad03b362..4545f69f6 100644
--- a/extensions/TypeSniffer/Config.pm
+++ b/extensions/TypeSniffer/Config.pm
@@ -20,7 +20,10 @@
# Gervase Markham <gerv@mozilla.org>
package Bugzilla::Extension::TypeSniffer;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'TypeSniffer';
diff --git a/extensions/TypeSniffer/Extension.pm b/extensions/TypeSniffer/Extension.pm
index c593b76e8..6c34cb169 100644
--- a/extensions/TypeSniffer/Extension.pm
+++ b/extensions/TypeSniffer/Extension.pm
@@ -20,7 +20,11 @@
# Gervase Markham <gerv@mozilla.org>
package Bugzilla::Extension::TypeSniffer;
+
+use 5.10.1;
use strict;
+use warnings;
+
use base qw(Bugzilla::Extension);
use File::MimeInfo::Magic;
diff --git a/extensions/UserProfile/Config.pm b/extensions/UserProfile/Config.pm
index 99dca9e02..99fae1610 100644
--- a/extensions/UserProfile/Config.pm
+++ b/extensions/UserProfile/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::UserProfile;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'UserProfile';
use constant REQUIRED_MODULES => [ ];
diff --git a/extensions/UserProfile/Extension.pm b/extensions/UserProfile/Extension.pm
index 2c17a2d9f..079f7a948 100644
--- a/extensions/UserProfile/Extension.pm
+++ b/extensions/UserProfile/Extension.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::UserProfile;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/UserProfile/bin/migrate.pl b/extensions/UserProfile/bin/migrate.pl
index 147edef9c..2cde3ce2c 100755
--- a/extensions/UserProfile/bin/migrate.pl
+++ b/extensions/UserProfile/bin/migrate.pl
@@ -11,8 +11,8 @@ use strict;
use warnings;
$| = 1;
-use FindBin qw($Bin);
-use lib "$Bin/../../..";
+use FindBin qw($RealBin);
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
use Bugzilla;
BEGIN { Bugzilla->extensions() }
diff --git a/extensions/UserProfile/bin/update.pl b/extensions/UserProfile/bin/update.pl
index 2a4997aee..af9a81774 100755
--- a/extensions/UserProfile/bin/update.pl
+++ b/extensions/UserProfile/bin/update.pl
@@ -10,8 +10,8 @@
use strict;
use warnings;
-use FindBin qw($Bin);
-use lib "$Bin/../../..";
+use FindBin qw($RealBin);
+use lib ("$RealBin/../../..", "$RealBin/../../../lib", "$RealBin/../../../local/lib/perl5");
use Bugzilla;
BEGIN { Bugzilla->extensions() }
diff --git a/extensions/UserProfile/lib/Util.pm b/extensions/UserProfile/lib/Util.pm
index 71d0e6501..509b131c1 100644
--- a/extensions/UserProfile/lib/Util.pm
+++ b/extensions/UserProfile/lib/Util.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::UserProfile::Util;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/UserStory/Config.pm b/extensions/UserStory/Config.pm
index 8649c71cf..8668deaa7 100644
--- a/extensions/UserStory/Config.pm
+++ b/extensions/UserStory/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::UserStory;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'UserStory';
use constant REQUIRED_MODULES => [
diff --git a/extensions/UserStory/Extension.pm b/extensions/UserStory/Extension.pm
index 2053a0097..f9fdb3f29 100644
--- a/extensions/UserStory/Extension.pm
+++ b/extensions/UserStory/Extension.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::UserStory;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/UserStory/lib/Constants.pm b/extensions/UserStory/lib/Constants.pm
index d09b28fef..6a1c0c449 100644
--- a/extensions/UserStory/lib/Constants.pm
+++ b/extensions/UserStory/lib/Constants.pm
@@ -7,6 +7,7 @@
package Bugzilla::Extension::UserStory::Constants;
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/Voting/Config.pm b/extensions/Voting/Config.pm
index 438f1e054..97c44933e 100644
--- a/extensions/Voting/Config.pm
+++ b/extensions/Voting/Config.pm
@@ -1,26 +1,15 @@
-# -*- Mode: perl; indent-tabs-mode: nil -*-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Frédéric Buclin.
-# Portions created by the Initial Developer is Copyright (C) 2012 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-# Frédéric Buclin <LpSolit@gmail.com>
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Voting;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'Voting';
diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm
index 39ed7c4b4..25266778c 100644
--- a/extensions/Voting/Extension.pm
+++ b/extensions/Voting/Extension.pm
@@ -1,31 +1,14 @@
-# -*- Mode: perl; indent-tabs-mode: nil -*-
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Netscape Communications
-# Corporation. Portions created by Netscape are
-# Copyright (C) 1998 Netscape Communications Corporation. All
-# Rights Reserved.
-#
-# Contributor(s): Terry Weissman <terry@mozilla.org>
-# Stephan Niemz <st.n@gmx.net>
-# Christopher Aillon <christopher@aillon.com>
-# Gervase Markham <gerv@gerv.net>
-# Frédéric Buclin <LpSolit@gmail.com>
-# Max Kanat-Alexander <mkanat@bugzilla.org>
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Voting;
+use 5.10.1;
use strict;
+use warnings;
use base qw(Bugzilla::Extension);
use Bugzilla::Bug;
diff --git a/extensions/ZPushNotify/Config.pm b/extensions/ZPushNotify/Config.pm
index e65169d41..1a31285e2 100644
--- a/extensions/ZPushNotify/Config.pm
+++ b/extensions/ZPushNotify/Config.pm
@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::ZPushNotify;
+
+use 5.10.1;
use strict;
+use warnings;
use constant NAME => 'ZPushNotify';
use constant REQUIRED_MODULES => [];
diff --git a/extensions/ZPushNotify/Extension.pm b/extensions/ZPushNotify/Extension.pm
index 2b6c1aeaa..df3ab8f46 100644
--- a/extensions/ZPushNotify/Extension.pm
+++ b/extensions/ZPushNotify/Extension.pm
@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::ZPushNotify;
+
+use 5.10.1;
use strict;
use warnings;
diff --git a/extensions/create.pl b/extensions/create.pl
index 1b54e6b33..80fc49448 100755
--- a/extensions/create.pl
+++ b/extensions/create.pl
@@ -1,26 +1,20 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is the Bugzilla Bug Tracking System.
-#
-# The Initial Developer of the Original Code is Everything Solved, Inc.
-# Portions created by the Initial Developer are Copyright (C) 2009 the
-# Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-# Max Kanat-Alexander <mkanat@bugzilla.org>
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
+use 5.10.1;
use strict;
-use lib qw(. lib);
+use warnings;
+
+use File::Basename;
+BEGIN { chdir dirname($0); }
+
+use lib qw(.. ../lib ../local/lib/perl5);
+
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;