mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +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)
|
public function include_file($filename)
|
||||||
{
|
{
|
||||||
if (!is_file($this->phpbb_root_path . $filename))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_file($this->path_to_new_files . $filename))
|
if (is_file($this->path_to_new_files . $filename))
|
||||||
{
|
{
|
||||||
include_once($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);
|
include_once($this->phpbb_root_path . $filename);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user