From de729110c8d723b64da333f515ba0acf2723c88c Mon Sep 17 00:00:00 2001 From: Mate Bartus Date: Mon, 19 Oct 2015 01:19:31 +0200 Subject: [PATCH] [ticket/14039] Fix inclusion logic in update helper PHPBB3-14039 --- phpBB/phpbb/install/helper/update_helper.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/phpBB/phpbb/install/helper/update_helper.php b/phpBB/phpbb/install/helper/update_helper.php index 2a3e6ceb0a..a00731d317 100644 --- a/phpBB/phpbb/install/helper/update_helper.php +++ b/phpBB/phpbb/install/helper/update_helper.php @@ -72,16 +72,11 @@ class update_helper */ public function include_file($filename) { - if (!is_file($this->phpbb_root_path . $filename)) - { - return; - } - if (is_file($this->path_to_new_files . $filename)) { include_once($this->path_to_new_files . $filename); } - else + else if (is_file($this->phpbb_root_path . $filename)) { include_once($this->phpbb_root_path . $filename); }