summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-07-08 07:04:18 +0200
committerDylan William Hardison <dylan@hardison.net>2018-07-08 07:04:18 +0200
commit597ac85a2a4219cb8cb6d916414e47a3abfa8c72 (patch)
tree1d01a86c4a32981a20016fa2204561588c96ea32 /Bugzilla/Constants.pm
parentbe1f92450788dc89280c9e04a4bf983b5d7fac54 (diff)
parentfbdbbe2d0dc333fdd6fb547254d2cab57ed3bc98 (diff)
downloadbugzilla-597ac85a2a4219cb8cb6d916414e47a3abfa8c72.tar.gz
bugzilla-597ac85a2a4219cb8cb6d916414e47a3abfa8c72.tar.xz
Merge remote-tracking branch 'dylanwh/mojo-poc'
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index 0b0c857a0..d71ec25ee 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -15,6 +15,7 @@ use base qw(Exporter);
# For bz_locations
use File::Basename;
+use Cwd qw(realpath);
use Memoize;
@Bugzilla::Constants::EXPORT = qw(
@@ -651,7 +652,7 @@ sub _bz_locations {
#
# On mod_cgi this will be a relative path. On mod_perl it will be an
# absolute path.
- my $libpath = dirname(dirname($INC{'Bugzilla/Constants.pm'}));
+ my $libpath = realpath(dirname(dirname(__FILE__)));
# We have to detaint $libpath, but we can't use Bugzilla::Util here.
$libpath =~ /(.*)/;
$libpath = $1;