]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 652047: checksetup.pl fails to compile/run if the Voting extension is enabled...
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 8 Oct 2012 11:01:56 +0000 (13:01 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 8 Oct 2012 11:01:56 +0000 (13:01 +0200)
r=glob a=LpSolit

extensions/Voting/Config.pm [new file with mode: 0644]
extensions/Voting/Extension.pm

diff --git a/extensions/Voting/Config.pm b/extensions/Voting/Config.pm
new file mode 100644 (file)
index 0000000..4fefe95
--- /dev/null
@@ -0,0 +1,19 @@
+# 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/.
+#
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::Voting;
+use strict;
+
+use constant NAME => 'Voting';
+
+use constant REQUIRED_MODULES => [
+];
+
+use constant OPTIONAL_MODULES => [
+];
+
+__PACKAGE__->NAME;
index 4cb8171e8c0470945cb78965129e8060b067f29f..49ab99e13b11dbba065f56fbaf8b01375be419e6 100644 (file)
@@ -21,7 +21,6 @@ use Bugzilla::Token;
 
 use List::Util qw(min);
 
-use constant NAME => 'Voting';
 use constant VERSION => BUGZILLA_VERSION;
 use constant DEFAULT_VOTES_PER_BUG => 1;
 # These came from Bugzilla itself, so they maintain the old numbers