From 61924ed86e2268fd4229c726a2bd9a9787937baa Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 22 Jun 2013 16:22:17 +0300 Subject: [PATCH] fix loadFunction --- ipf.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipf.php b/ipf.php index fc92ad7..4565c8c 100644 --- a/ipf.php +++ b/ipf.php @@ -146,7 +146,8 @@ final class IPF $elts = explode('_', $function); array_pop($elts); $file = strtolower(implode(DIRECTORY_SEPARATOR, $elts)).'.php'; - @include $file; + @include IPF::$settings['ipf_path'] . $file; + @include IPF::$settings['project_path'] . $file; if (!function_exists($function)) throw new IPF_Exception('Impossible to load the function: '.$function.' in '.$file); } -- 2.49.0