summaryrefslogtreecommitdiffstats
path: root/editkeywords.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 /editkeywords.cgi
parent63790559f094b702688365ed12242526ce3ff969 (diff)
downloadbugzilla-da857afa089e79ad16fb833dd1ffe397055fd892.tar.gz
bugzilla-da857afa089e79ad16fb833dd1ffe397055fd892.tar.xz
Bug 208604 - Make data/template dir locations configurable
Diffstat (limited to 'editkeywords.cgi')
-rwxr-xr-xeditkeywords.cgi8
1 files changed, 5 insertions, 3 deletions
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 = "<A HREF=\"editkeywords.cgi\">edit</A> more keywords";
@@ -240,7 +242,7 @@ if ($action eq 'new') {
SqlQuote($description) . ")");
# Make versioncache flush
- unlink "data/versioncache";
+ unlink "$datadir/versioncache";
print "OK, done.<p>\n";
PutTrailer("<a href=\"editkeywords.cgi\">edit</a> 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();