From c41117346f48774e5c6731303702b5ce98db517b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 21 Jun 2006 07:44:46 +0000 Subject: Bug 282121: Remove globals.pl from scripts that no longer use it - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- whine.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'whine.pl') diff --git a/whine.pl b/whine.pl index 551defe49..727e66af4 100755 --- a/whine.pl +++ b/whine.pl @@ -27,10 +27,9 @@ use strict; use lib "."; -require "globals.pl"; use Bugzilla; -use Bugzilla::Config qw(:DEFAULT $datadir); +use Bugzilla::Config qw(:DEFAULT); use Bugzilla::Constants; use Bugzilla::Search; use Bugzilla::User; @@ -106,7 +105,7 @@ if ($fromaddress !~ Param('emailregexp')) { # Check the nomail file for users who should not receive mail my %nomail; -if (open(NOMAIL, '<', "$datadir/nomail")) { +if (open(NOMAIL, '<', bz_locations()->{'datadir'} . "/nomail")) { while () { $nomail{trim($_)} = 1; } -- cgit v1.2.3-24-g4f1b