]> 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:05:25 +0000 (13:05 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 8 Oct 2012 11:05:25 +0000 (13:05 +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..438f1e0
--- /dev/null
@@ -0,0 +1,33 @@
+# -*- Mode: perl; indent-tabs-mode: nil -*-
+#
+# 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>
+
+package Bugzilla::Extension::Voting;
+use strict;
+
+use constant NAME => 'Voting';
+
+use constant REQUIRED_MODULES => [
+];
+
+use constant OPTIONAL_MODULES => [
+];
+
+__PACKAGE__->NAME;
index ead81266a603269075f67c898b9cb7206f5d3383..a5a3bc11b85cc75979d4dfd6ea97d3cbadb1dac0 100644 (file)
@@ -40,7 +40,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