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/includes/hook | |
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/includes/hook')
-rw-r--r-- | phpBB/includes/hook/finder.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |