diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-04-24 17:17:53 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-04-24 17:45:39 -0500 |
commit | fe89e566869e91a582129b1174c1831b8ee2f865 (patch) | |
tree | c457ba78220ba8638a0a7101e35690f904f32aac /phpBB | |
parent | ce230f8dea4afb585e7aca5a1763c547b2c39e81 (diff) | |
download | forums-fe89e566869e91a582129b1174c1831b8ee2f865.tar forums-fe89e566869e91a582129b1174c1831b8ee2f865.tar.gz forums-fe89e566869e91a582129b1174c1831b8ee2f865.tar.bz2 forums-fe89e566869e91a582129b1174c1831b8ee2f865.tar.xz forums-fe89e566869e91a582129b1174c1831b8ee2f865.zip |
[ticket/11335] (hook finder) Make php_ext 'php' not '.php'
PHPBB3-11335
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/config/services.yml | 2 | ||||
-rw-r--r-- | phpBB/includes/hook/finder.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/config/services.yml b/phpBB/config/services.yml index 8f58d23fd9..dc293c83a2 100644 --- a/phpBB/config/services.yml +++ b/phpBB/config/services.yml @@ -173,7 +173,7 @@ services: class: phpbb_hook_finder arguments: - %core.root_path% - - .%core.php_ext% + - %core.php_ext% - @cache.driver kernel_request_subscriber: diff --git a/phpBB/includes/hook/finder.php b/phpBB/includes/hook/finder.php index 065e685514..7b0412f733 100644 --- a/phpBB/includes/hook/finder.php +++ b/phpBB/includes/hook/finder.php @@ -66,7 +66,7 @@ class phpbb_hook_finder { 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)); } |