use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Flag;
-use Bugzilla::Config;
use Bugzilla::User;
use Bugzilla::Util qw(trick_taint);
use Bugzilla::Constants;
use Bugzilla::Error;
-use Bugzilla::Config;
use Bugzilla::Auth::Login::Stack;
use Bugzilla::Auth::Verify::Stack;
use Bugzilla::Auth::Persist::Cookie;
use base qw(Bugzilla::Auth::Login);
use constant user_can_create_account => 1;
-use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Util;
use Bugzilla::Error;
use strict;
use base qw(Bugzilla::Auth::Login);
-use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Error;
use strict;
use fields qw();
-use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Util;
use Bugzilla::Token;
ldap
);
-use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Error;
use CGI::Carp qw(fatalsToBrowser);
use Bugzilla::Attachment;
-use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Field;
use Bugzilla::Flag;
use Bugzilla::Error;
use Bugzilla::User;
use Bugzilla::Constants;
-use Bugzilla::Config;
use Bugzilla::Util;
use Bugzilla::Bug;
use Bugzilla::Product;
use base qw(Exporter);
use Bugzilla::Constants;
-# Module stuff
-@Bugzilla::Config::EXPORT = qw(Param);
-
# Don't export localvars by default - people should have to explicitly
# ask for it, as a (probably futile) attempt to stop code using it
# when it shouldn't
return @param_panels;
}
-sub Param {
- my ($param) = @_;
-
- _load_params unless %params;
- my %param_values = %{Bugzilla->params};
-
- # By this stage, the param must be in the hash
- die "Can't find param named $param" unless (exists $params{$param});
-
- # When module startup code runs (which is does even via -c, when using
- # |use|), we may try to grab params which don't exist yet. This affects
- # tests, so have this as a fallback for the -c case
- return $params{$param}->{default}
- if ($^C && not exists $param_values{$param});
-
- # If we have a value for the param, return it
- return $param_values{$param} if exists $param_values{$param};
-
- # Else error out
- die "No value for param $param (try running checksetup.pl again)";
-}
-
sub SetParam {
my ($name, $value) = @_;
=head1 SYNOPSIS
- # Getting parameters
- use Bugzilla::Config;
-
- my $fooSetting = Bugzilla->params->{'foo'};
-
# Administration functions
use Bugzilla::Config qw(:admin);
=over 4
-=item C<Bugzilla->params->{$name}>
-
-Returns the Param with the specified name. Either a string, or, in the case
-of multiple-choice parameters, an array reference.
-
=item C<SetParam($name, $value)>
Sets the param named $name to $value. Values are checked using the checker
# Inherit the DB class from DBI::db.
use base qw(DBI::db);
-use Bugzilla::Config qw(:DEFAULT :db);
+use Bugzilla::Config qw(:db);
use Bugzilla::Constants;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::FlagType;
use Bugzilla::User;
-use Bugzilla::Config;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Mailer;
use Bugzilla::Error;
use Bugzilla::Util;
-use Bugzilla::Config;
######################################################################
# Global Variables
@Bugzilla::Mailer::EXPORT = qw(MessageToMTA);
use Bugzilla::Constants;
-use Bugzilla::Config;
use Bugzilla::Util;
use Mail::Header;
use base qw(Exporter);
@Bugzilla::Search::EXPORT = qw(IsValidQueryType);
-use Bugzilla::Config;
use Bugzilla::Error;
use Bugzilla::Util;
use Bugzilla::Constants;
# Make it harder for us to do dangerous things in Perl.
use strict;
-use Bugzilla::Config;
use Bugzilla::Error;
use Bugzilla::Constants;
use Bugzilla::Keyword;
use strict;
use Bugzilla::Constants;
-use Bugzilla::Config;
use Bugzilla::Util;
use Bugzilla::User;
use Bugzilla::Error;
# Default variables for all templates
VARIABLES => {
# Function for retrieving global parameters.
- 'Param' => \&Bugzilla::Config::Param,
+ 'Param' => sub { return Bugzilla->params->{$_[0]}; },
# Function to create date strings
'time2str' => \&Date::Format::time2str,
use strict;
-use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Template;
use Bugzilla::Util;
# Bundle the functions in this file together into the "Bugzilla::Token" package.
package Bugzilla::Token;
-use Bugzilla::Config;
use Bugzilla::Error;
use Bugzilla::Mailer;
use Bugzilla::Util;
# This module implements utilities for dealing with Bugzilla users.
package Bugzilla::User;
-use Bugzilla::Config;
use Bugzilla::Error;
use Bugzilla::Util;
use Bugzilla::Constants;
use lib qw(.);
use Bugzilla;
-use Bugzilla::Config qw(:DEFAULT :localconfig);
+use Bugzilla::Config qw(:localconfig);
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Flag;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Search;
use Bugzilla::Search::Quicksearch;
use Bugzilla::User;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Error;
use Bugzilla::Util;
use Bugzilla::Chart;
$::ENV{'PATH'} = $env;
require Bugzilla::Config;
- import Bugzilla::Config qw(:DEFAULT :admin);
+ import Bugzilla::Config qw(:admin);
}
# 12/17/00 justdave@syndicomm.com - removed declarations of the localconfig
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Error;
use Bugzilla::User;
use Bugzilla::Keyword;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Search;
use Bugzilla::User;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Error;
use Bugzilla::Keyword;
use Bugzilla::Bug;
#
# You need to work with bug_email.pl the MIME::Parser installed.
#
-# $Id: bug_email.pl,v 1.43 2006/07/03 21:26:22 mkanat%bugzilla.org Exp $
+# $Id: bug_email.pl,v 1.44 2006/07/03 21:42:47 mkanat%bugzilla.org Exp $
###############################################################
# 02/12/2000 (SML)
use Bugzilla;
use BugzillaEmail;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Constants;
use Bugzilla::Util;
use Bugzilla::BugMail;
use Bugzilla;
use Bugzilla::Constants;
use BugzillaEmail;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::BugMail;
my $dbh = Bugzilla->dbh;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Getopt::Long;
#
# Nick Barnes, Ravenbrook Limited, 2004-04-01.
#
-# $Id: sendbugmail.pl,v 1.6 2006/07/03 21:26:22 mkanat%bugzilla.org Exp $
+# $Id: sendbugmail.pl,v 1.7 2006/07/03 21:42:47 mkanat%bugzilla.org Exp $
#
# Bugzilla email script for Bugzilla 2.17.4 and later. Invoke this to send
# bugmail for a bug which has been changed directly in the database.
use lib qw(.);
use Bugzilla;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::BugMail;
use Bugzilla::User;
use Net::LDAP;
use Bugzilla;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::User;
my $cgi = Bugzilla->cgi;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Error;
use Bugzilla::User;
use Bugzilla::BugMail;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Search;
use Bugzilla::Constants;
use Bugzilla::Util;
use Bugzilla::Error;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Classification;
my $cgi = Bugzilla->cgi;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Series;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT :admin);
+use Bugzilla::Config qw(:admin);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Group;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT :admin);
+use Bugzilla::Config qw(:admin);
use Bugzilla::Config::Common;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Bug;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::User;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT :admin);
+use Bugzilla::Config qw(:admin);
# List of different tables that contain the changeable field values
# (the old "enums.") Keep them in alphabetical order by their
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::User;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Bug;
use Bugzilla::Component;
use Bugzilla::Milestone;
use Bugzilla::FlagType;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::BugMail;
use Bugzilla::Mailer;
use Bugzilla::User;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Error;
use Bugzilla::Update;
use Bugzilla;
use Bugzilla::Attachment;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Bug;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Bug;
use Bugzilla::Mailer;
use Bugzilla::User;
use Bugzilla;
use Bugzilla::Bug;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Search;
use Bugzilla::User;
use Bugzilla::Util;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::User;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use lib qw(.);
use Bugzilla;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Flag;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Error;
use Bugzilla::User;
use Bugzilla::Keyword;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Bug;
use Bugzilla;
use Bugzilla::Constants; # LOGIN_*
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Bug; # EmitDependList
use Bugzilla::Util; # trim
use Bugzilla::Error;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Search;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Bug;
use lib ".";
use Bugzilla;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Constants;
use Bugzilla::Search;
use Bugzilla::User;
use lib '.';
use Bugzilla;
-use Bugzilla::Config qw(:DEFAULT);
use Bugzilla::Mailer;
use Bugzilla::Util;