aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2018-09-01 01:09:22 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-05-09 18:57:10 +0200
commit432482160d55dd1f65b568abeb30f789a27a89c7 (patch)
treef8d8aebea6ac0f06aec61dc41cde9e45e5bf20aa /phpBB/phpbb/user.php
parent[ticket/15746] Update symfony to latest on master (diff)
downloadphpbb-432482160d55dd1f65b568abeb30f789a27a89c7.tar.gz
phpbb-432482160d55dd1f65b568abeb30f789a27a89c7.tar.bz2
phpbb-432482160d55dd1f65b568abeb30f789a27a89c7.zip
[ticket/12623] Add allow_install_dir
PHPBB3-12623
Diffstat (limited to 'phpBB/phpbb/user.php')
-rw-r--r--phpBB/phpbb/user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php
index 680a442930..5a06becb52 100644
--- a/phpBB/phpbb/user.php
+++ b/phpBB/phpbb/user.php
@@ -110,7 +110,7 @@ class user extends \phpbb\session
function setup($lang_set = false, $style_id = false)
{
global $db, $request, $template, $config, $auth, $phpEx, $phpbb_root_path, $cache;
- global $phpbb_dispatcher;
+ global $phpbb_dispatcher, $phpbb_container;
$this->language->set_default_language($config['default_lang']);
@@ -328,7 +328,7 @@ class user extends \phpbb\session
// Disable board if the install/ directory is still present
// For the brave development army we do not care about this, else we need to comment out this every time we develop locally
- if (!defined('DEBUG') && !defined('ADMIN_START') && !defined('IN_INSTALL') && !defined('IN_LOGIN') && file_exists($phpbb_root_path . 'install') && !is_file($phpbb_root_path . 'install'))
+ if (!$phpbb_container->getParameter('allow_install_dir') && !defined('ADMIN_START') && !defined('IN_INSTALL') && !defined('IN_LOGIN') && file_exists($phpbb_root_path . 'install') && !is_file($phpbb_root_path . 'install'))
{
// Adjust the message slightly according to the permissions
if ($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_'))