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

[ticket/15253] Update imports

PHPBB3-15253
This commit is contained in:
Rubén Calvo
2017-06-27 11:47:25 +02:00
parent 8bbec30748
commit b1755d9dac
20 changed files with 75 additions and 44 deletions

View File

@@ -13,6 +13,8 @@
namespace phpbb;
use phpbb\filesystem\helper as filesystem_helper;
/**
* The finder provides a simple way to locate files in the core and a set of extensions
*/
@@ -241,7 +243,7 @@ class finder
*/
protected function sanitise_directory($directory)
{
$directory = \phpbb\filesystem\helper::clean_path($directory);
$directory = filesystem_helper::clean_path($directory);
$dir_len = strlen($directory);
if ($dir_len > 1 && $directory[$dir_len - 1] === '/')