mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 22:58:10 +01:00
[ticket/11335] (kernel request subscriber) Make php_ext 'php' not '.php'
PHPBB3-11335
This commit is contained in:
parent
fe89e56686
commit
df70b6ebe6
@ -181,7 +181,7 @@ services:
|
||||
arguments:
|
||||
- @ext.finder
|
||||
- %core.root_path%
|
||||
- .%core.php_ext%
|
||||
- %core.php_ext%
|
||||
tags:
|
||||
- { name: kernel.event_subscriber }
|
||||
|
||||
|
@ -60,7 +60,7 @@ function phpbb_create_dumped_url_matcher(phpbb_extension_finder $finder, $root_p
|
||||
'class' => 'phpbb_url_matcher',
|
||||
));
|
||||
|
||||
file_put_contents($root_path . 'cache/url_matcher' . $php_ext, $cached_url_matcher_dump);
|
||||
file_put_contents($root_path . 'cache/url_matcher.' . $php_ext, $cached_url_matcher_dump);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -87,7 +87,7 @@ function phpbb_create_url_matcher(phpbb_extension_finder $finder, RequestContext
|
||||
*/
|
||||
function phpbb_load_url_matcher(RequestContext $context, $root_path, $php_ext)
|
||||
{
|
||||
require($root_path . 'cache/url_matcher' . $php_ext);
|
||||
require($root_path . 'cache/url_matcher.' . $php_ext);
|
||||
return new phpbb_url_matcher($context);
|
||||
}
|
||||
|
||||
@ -102,5 +102,5 @@ function phpbb_load_url_matcher(RequestContext $context, $root_path, $php_ext)
|
||||
*/
|
||||
function phpbb_url_matcher_dumped($root_path, $php_ext)
|
||||
{
|
||||
return file_exists($root_path . 'cache/url_matcher' . $php_ext);
|
||||
return file_exists($root_path . 'cache/url_matcher.' . $php_ext);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user