mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/14039] Fix inclusion logic in update helper
PHPBB3-14039
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user