1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 22:40:39 +02:00

[ticket/12529] Use root_path in controller\resolver to check the template dir

PHPBB3-12529
This commit is contained in:
Tristan Darricau
2014-05-11 14:10:19 +02:00
parent d4fc060bcd
commit 197c801746
3 changed files with 11 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ class phpbb_controller_controller_test extends phpbb_test_case
include(__DIR__.'/phpbb/controller/foo.php');
}
$resolver = new \phpbb\controller\resolver(new \phpbb\user, $container);
$resolver = new \phpbb\controller\resolver(new \phpbb\user, dirname(__FILE__) . '/', $container);
$symfony_request = new Request();
$symfony_request->attributes->set('_controller', 'foo.controller:handle');