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 --- editcomponents.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'editcomponents.cgi') diff --git a/editcomponents.cgi b/editcomponents.cgi index 67ccfcd8a..87ab9d9a6 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -31,6 +31,7 @@ use lib "."; require "CGI.pl"; require "globals.pl"; +use Bugzilla::Config qw(:DEFAULT $datadir); use Bugzilla::Series; # Shut up misguided -w warnings about "used only once". For some reason, @@ -471,7 +472,7 @@ if ($action eq 'new') { } # Make versioncache flush - unlink "data/versioncache"; + unlink "$datadir/versioncache"; print "OK, done.

\n"; if ($product) { @@ -666,7 +667,7 @@ if ($action eq 'delete') { print "Components deleted.

\n"; SendSQL("UNLOCK TABLES"); - unlink "data/versioncache"; + unlink "$datadir/versioncache"; PutTrailer($localtrailer); exit; } @@ -836,7 +837,7 @@ if ($action eq 'update') { SendSQL("UPDATE components SET name=" . SqlQuote($component) . "WHERE id=$component_id"); - unlink "data/versioncache"; + unlink "$datadir/versioncache"; print "Updated component name.
\n"; } SendSQL("UNLOCK TABLES"); -- cgit v1.2.3-24-g4f1b