[ticket/13008] Use an absolute path with the FileLocator for the routing files

PHPBB3-13008
This commit is contained in:
Tristan Darricau 2014-08-23 12:34:23 +02:00
parent d2ed2c4e1e
commit 03b9eb5dcb

View file

@ -73,7 +73,7 @@ class provider
$this->routes = new RouteCollection;
foreach ($this->routing_files as $file_path)
{
$loader = new YamlFileLoader(new FileLocator($base_path));
$loader = new YamlFileLoader(new FileLocator(phpbb_realpath($base_path)));
$this->routes->addCollection($loader->load($file_path));
}