aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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();