1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +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

@@ -14,6 +14,7 @@
namespace phpbb\routing;
use Symfony\Component\Config\FileLocator;
use phpbb\filesystem\helper as filesystem_helper;
class file_locator extends FileLocator
{
@@ -24,7 +25,7 @@ class file_locator extends FileLocator
foreach ($paths as $path)
{
$absolute_paths[] = \phpbb\filesystem\helper::realpath($path);
$absolute_paths[] = filesystem_helper::realpath($path);
}
parent::__construct($absolute_paths);

View File

@@ -15,6 +15,7 @@ namespace phpbb\routing;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RequestContext;
use phpbb\filesystem\helper as filesystem_helper;
/**
* Controller helper class, contains methods that do things for controllers
@@ -133,7 +134,7 @@ class helper
}
}
$base_url = $this->request->escape(\phpbb\filesystem\helper::clean_path($base_url), true);
$base_url = $this->request->escape(filesystem_helper::clean_path($base_url), true);
$context->setBaseUrl($base_url);