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:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user