From 249b9dcdb5a19e3d380a28f3df403106a41fadff Mon Sep 17 00:00:00 2001 From: Cesar G Date: Sat, 22 Feb 2014 20:23:30 -0800 Subject: [ticket/12160] Use phpbb_check_installation_exists() in the other modules. PHPBB3-12160 --- phpBB/install/install_update.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'phpBB/install/install_update.php') diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php index dc6e57c851..87fe56737a 100644 --- a/phpBB/install/install_update.php +++ b/phpBB/install/install_update.php @@ -19,16 +19,7 @@ if (!defined('IN_INSTALL')) if (!empty($setmodules)) { // If phpBB is not installed we do not include this module - if (@file_exists($phpbb_root_path . 'config.' . $phpEx) && !@file_exists($phpbb_root_path . 'cache/install_lock')) - { - include_once($phpbb_root_path . 'config.' . $phpEx); - - if (!defined('PHPBB_INSTALLED')) - { - return; - } - } - else + if (!phpbb_check_installation_exists($phpbb_root_path, $phpEx) || file_exists($phpbb_root_path . 'cache/install_lock')) { return; } -- cgit v1.2.1