aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-12-09 17:01:08 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2012-12-09 17:01:08 -0600
commit6dee2539419ba2c050830b7677294603a63b559a (patch)
tree4981e8a9d0cd2e4ecaf22f1907242397719d2cd6 /phpBB/common.php
parentbd987b6e14ffc134f1c1972e3c0fb3b0a19e09b2 (diff)
downloadforums-6dee2539419ba2c050830b7677294603a63b559a.tar
forums-6dee2539419ba2c050830b7677294603a63b559a.tar.gz
forums-6dee2539419ba2c050830b7677294603a63b559a.tar.bz2
forums-6dee2539419ba2c050830b7677294603a63b559a.tar.xz
forums-6dee2539419ba2c050830b7677294603a63b559a.zip
[ticket/11259] Make phpbb_admin_path available everywhere
PHPBB3-11259
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index e99b9edee5..ff128553ab 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -63,6 +63,10 @@ if (!defined('PHPBB_INSTALLED'))
exit;
}
+// In case $adm_relative_path is not set (in case of an update), use the default.
+$adm_relative_path = (isset($adm_relative_path)) ? ((substr($adm_relative_path, -1) == '/') ? $adm_relative_path : $adm_relative_path . '/') : 'adm/';
+$phpbb_admin_path = (defined('PHPBB_ADMIN_PATH')) ? PHPBB_ADMIN_PATH : $phpbb_root_path . $adm_relative_path;
+
// Include files
require($phpbb_root_path . 'includes/class_loader.' . $phpEx);