mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11335] (hook finder) Make php_ext 'php' not '.php'
PHPBB3-11335
This commit is contained in:
parent
ce230f8dea
commit
fe89e56686
2 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ services:
|
||||||
class: phpbb_hook_finder
|
class: phpbb_hook_finder
|
||||||
arguments:
|
arguments:
|
||||||
- %core.root_path%
|
- %core.root_path%
|
||||||
- .%core.php_ext%
|
- %core.php_ext%
|
||||||
- @cache.driver
|
- @cache.driver
|
||||||
|
|
||||||
kernel_request_subscriber:
|
kernel_request_subscriber:
|
||||||
|
|
|
@ -66,7 +66,7 @@ class phpbb_hook_finder
|
||||||
{
|
{
|
||||||
while (($file = readdir($dh)) !== false)
|
while (($file = readdir($dh)) !== false)
|
||||||
{
|
{
|
||||||
if (strpos($file, 'hook_') === 0 && substr($file, -(strlen($this->php_ext) + 1)) === '.' . $this->php_ext)
|
if (strpos($file, 'hook_') === 0 && substr($file, -strlen('.' . $this->php_ext)) === '.' . $this->php_ext)
|
||||||
{
|
{
|
||||||
$hook_files[] = substr($file, 0, -(strlen($this->php_ext) + 1));
|
$hook_files[] = substr($file, 0, -(strlen($this->php_ext) + 1));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue