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 --- editversions.cgi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'editversions.cgi') diff --git a/editversions.cgi b/editversions.cgi index d47ec5d76..9c4a5e5ea 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -32,8 +32,7 @@ use lib "."; require "CGI.pl"; require "globals.pl"; - - +use Bugzilla::Config qw(:DEFAULT $datadir); # TestProduct: just returns if the specified product does exists # CheckProduct: same check, optionally emit an error text @@ -317,7 +316,7 @@ if ($action eq 'new') { SqlQuote($version) . ", $product_id)"); # Make versioncache flush - unlink "data/versioncache"; + unlink "$datadir/versioncache"; print "OK, done.

\n"; PutTrailer("add another version or $localtrailer"); @@ -446,7 +445,7 @@ if ($action eq 'delete') { print "Version deleted.

\n"; SendSQL("UNLOCK TABLES"); - unlink "data/versioncache"; + unlink "$datadir/versioncache"; PutTrailer($localtrailer); exit; } @@ -527,7 +526,7 @@ if ($action eq 'update') { SET value=" . SqlQuote($version) . " WHERE product_id = $product_id AND value=" . SqlQuote($versionold)); - unlink "data/versioncache"; + unlink "$datadir/versioncache"; print "Updated version.
\n"; } SendSQL("UNLOCK TABLES"); -- cgit v1.2.3-24-g4f1b