aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-10-08 13:03:36 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-10-08 13:03:36 +0200
commit75b15ff340c5bd17c59862c0d1ab4de38d24e864 (patch)
tree22c27b9497daeb40d99d1f3f857c3887a1eb71eb
parent$_localconfig is now obsolete (diff)
downloadbugzilla-75b15ff340c5bd17c59862c0d1ab4de38d24e864.tar.gz
bugzilla-75b15ff340c5bd17c59862c0d1ab4de38d24e864.tar.bz2
bugzilla-75b15ff340c5bd17c59862c0d1ab4de38d24e864.zip
Bug 652047: checksetup.pl fails to compile/run if the Voting extension is enabled on a fresh install
r=glob a=LpSolit
-rw-r--r--extensions/Voting/Config.pm19
-rw-r--r--extensions/Voting/Extension.pm1
2 files changed, 19 insertions, 1 deletions
diff --git a/extensions/Voting/Config.pm b/extensions/Voting/Config.pm
new file mode 100644
index 000000000..4fefe957a
--- /dev/null
+++ b/extensions/Voting/Config.pm
@@ -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;
diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm
index 4cb8171e8..49ab99e13 100644
--- a/extensions/Voting/Extension.pm
+++ b/extensions/Voting/Extension.pm
@@ -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