aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 4a6c417bd..b5f4870bc 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1066,12 +1066,14 @@
{
if ($include_subdirs)
{
- if (strpos($call['file'], $path) === 0)
+ if (strpos($call['file'], $path) === 0) {
if ($strict_mode) {
- if ($callstack[2] === $call) return true;
+ if ($callstack[1] === $call) return true;
}
else
return true;
+ }
+ else echo ":{$call['file']}:$path: FAIL\n";
}
else
{