1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 08:17:47 +02:00

[ticket/11832] Inject dependencies for phpbb_get_web_root_path (also moving)

Function moved from phpbb_get_web_root_path to filesystem::get_web_root_path

PHPBB3-11832
This commit is contained in:
Nathan Guse
2013-09-09 17:28:56 -05:00
parent 2146d0c36b
commit f30b87519e
10 changed files with 83 additions and 51 deletions

View File

@@ -47,7 +47,7 @@ if (!defined('PHPBB_INSTALLED'))
// Eliminate . and .. from the path
require($phpbb_root_path . 'phpbb/filesystem.' . $phpEx);
$phpbb_filesystem = new phpbb_filesystem();
$phpbb_filesystem = new phpbb_filesystem($phpbb_root_path);
$script_path = $phpbb_filesystem->clean_path($script_path);
$url = (($secure) ? 'https://' : 'http://') . $server_name;