From da857afa089e79ad16fb833dd1ffe397055fd892 Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" <> Date: Sat, 22 Nov 2003 11:50:36 +0000 Subject: Bug 208604 - Make data/template dir locations configurable --- editkeywords.cgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'editkeywords.cgi') diff --git a/editkeywords.cgi b/editkeywords.cgi index cf2c44efc..c51580272 100755 --- a/editkeywords.cgi +++ b/editkeywords.cgi @@ -25,6 +25,8 @@ use lib "."; require "CGI.pl"; +use Bugzilla::Config qw(:DEFAULT $datadir); + use vars qw($template $vars); my $localtrailer = "edit more keywords"; @@ -240,7 +242,7 @@ if ($action eq 'new') { SqlQuote($description) . ")"); # Make versioncache flush - unlink "data/versioncache"; + unlink "$datadir/versioncache"; print "OK, done.
\n"; PutTrailer("edit more keywords", @@ -328,7 +330,7 @@ if ($action eq 'update') { " WHERE id = $id"); # Make versioncache flush - unlink "data/versioncache"; + unlink "$datadir/versioncache"; print Bugzilla->cgi->header(); @@ -373,7 +375,7 @@ if ($action eq 'delete') { SendSQL("DELETE FROM keyworddefs WHERE id = $id"); # Make versioncache flush - unlink "data/versioncache"; + unlink "$datadir/versioncache"; print Bugzilla->cgi->header(); -- cgit v1.2.3-24-g4f1b