summaryrefslogtreecommitdiffstats
path: root/editcomponents.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 /editcomponents.cgi
parent63790559f094b702688365ed12242526ce3ff969 (diff)
downloadbugzilla-da857afa089e79ad16fb833dd1ffe397055fd892.tar.gz
bugzilla-da857afa089e79ad16fb833dd1ffe397055fd892.tar.xz
Bug 208604 - Make data/template dir locations configurable
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-xeditcomponents.cgi7
1 files changed, 4 insertions, 3 deletions
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.<p>\n";
if ($product) {
@@ -666,7 +667,7 @@ if ($action eq 'delete') {
print "Components deleted.<P>\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.<BR>\n";
}
SendSQL("UNLOCK TABLES");