diff options
author | lpsolit%gmail.com <> | 2006-06-21 07:44:46 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-21 07:44:46 +0000 |
commit | c41117346f48774e5c6731303702b5ce98db517b (patch) | |
tree | 96cd49de1876e195d8df5760a5519563db41ae24 /whine.pl | |
parent | Patch for bug 342130: don't display a bogus footer anymore when searching for... (diff) | |
download | bugzilla-c41117346f48774e5c6731303702b5ce98db517b.tar.gz bugzilla-c41117346f48774e5c6731303702b5ce98db517b.tar.bz2 bugzilla-c41117346f48774e5c6731303702b5ce98db517b.zip |
Bug 282121: Remove globals.pl from scripts that no longer use it - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'whine.pl')
-rwxr-xr-x | whine.pl | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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>) { $nomail{trim($_)} = 1; } |