summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-02-28 04:00:58 +0100
committerGitHub <noreply@github.com>2018-02-28 04:00:58 +0100
commit2eaa1ccd24f2c8050eec838454eb1dbef9f344b8 (patch)
treeda2517e35f2ab4b6f9044166008764efe438c897 /Bugzilla/Constants.pm
parent2ac3574928f3bf8b68e881f49f854b61aa023d63 (diff)
downloadbugzilla-2eaa1ccd24f2c8050eec838454eb1dbef9f344b8.tar.gz
bugzilla-2eaa1ccd24f2c8050eec838454eb1dbef9f344b8.tar.xz
Bug 1437646 - Add confdir to bz_locations
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index 695f2fede..00f0f8104 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -659,18 +659,21 @@ sub _bz_locations {
$libpath =~ /(.*)/;
$libpath = $1;
- my ($localconfig, $datadir);
+ my ($localconfig, $datadir, $confdir);
if ($project && $project =~ /^(\w+)$/) {
$project = $1;
$localconfig = "localconfig.$project";
$datadir = "data/$project";
+ $confdir = "conf/$project";
} else {
$project = undef;
$localconfig = "localconfig";
$datadir = "data";
+ $confdir = "conf";
}
$datadir = "$libpath/$datadir";
+ $confdir = "$libpath/$confdir";
# We have to return absolute paths for mod_perl.
# That means that if you modify these paths, they must be absolute paths.
return {
@@ -698,6 +701,7 @@ sub _bz_locations {
'assetsdir' => "$datadir/assets",
# error_reports store error/warnings destined for sentry
'error_reports' => "$libpath/error_reports",
+ 'confdir' => $confdir,
};
}