aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/hook
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-04-25 04:01:38 -0700
committerNils Adermann <naderman@naderman.de>2013-04-25 04:01:38 -0700
commit7b144bbff2968b8897359b7954f048ce5eb78455 (patch)
treed22e4fb4b65d84f835ec8c5573145269b7187f7d /phpBB/includes/hook
parent6d0b183553a63156cbeb4f515bbc22c728c63008 (diff)
parent9c4553c41f0e0f2c28fb95b5e56886f77cb759ba (diff)
downloadforums-7b144bbff2968b8897359b7954f048ce5eb78455.tar
forums-7b144bbff2968b8897359b7954f048ce5eb78455.tar.gz
forums-7b144bbff2968b8897359b7954f048ce5eb78455.tar.bz2
forums-7b144bbff2968b8897359b7954f048ce5eb78455.tar.xz
forums-7b144bbff2968b8897359b7954f048ce5eb78455.zip
Merge pull request #1369 from EXreaction/ticket/11335
Ticket/11335
Diffstat (limited to 'phpBB/includes/hook')
-rw-r--r--phpBB/includes/hook/finder.php2
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));
}