summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-11-22 12:50:36 +0100
committerbbaetz%acm.org <>2003-11-22 12:50:36 +0100
commitda857afa089e79ad16fb833dd1ffe397055fd892 (patch)
tree4582f630aa59c35fdb25aa30fd71c617977e0a86 /editproducts.cgi
parent63790559f094b702688365ed12242526ce3ff969 (diff)
downloadbugzilla-da857afa089e79ad16fb833dd1ffe397055fd892.tar.gz
bugzilla-da857afa089e79ad16fb833dd1ffe397055fd892.tar.xz
Bug 208604 - Make data/template dir locations configurable
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi8
1 files changed, 5 insertions, 3 deletions
diff --git a/editproducts.cgi b/editproducts.cgi
index 07dbcc9e3..b02588949 100755
--- a/editproducts.cgi
+++ b/editproducts.cgi
@@ -35,6 +35,8 @@ require "CGI.pl";
require "globals.pl";
use Bugzilla::Series;
+use Bugzilla::Config qw(:DEFAULT $datadir);
+
# Shut up misguided -w warnings about "used only once". "use vars" just
# doesn't work for me.
use vars qw(@legal_bug_status @legal_resolution);
@@ -432,7 +434,7 @@ if ($action eq 'new') {
}
# Make versioncache flush
- unlink "data/versioncache";
+ unlink "$datadir/versioncache";
print "OK, done.<p>\n";
PutTrailer($localtrailer,
@@ -675,7 +677,7 @@ if ($action eq 'delete') {
SendSQL("UNLOCK TABLES");
- unlink "data/versioncache";
+ unlink "$datadir/versioncache";
PutTrailer($localtrailer);
exit;
}
@@ -1200,7 +1202,7 @@ if ($action eq 'update') {
print "Updated product name.<BR>\n";
}
- unlink "data/versioncache";
+ unlink "$datadir/versioncache";
SendSQL("UNLOCK TABLES");
if ($checkvotes) {