From: Andrey Kutejko Date: Sat, 22 Jun 2013 13:22:17 +0000 (+0300) Subject: fix loadFunction X-Git-Tag: 0.5~214 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=61924ed86e2268fd4229c726a2bd9a9787937baa;p=ipf.git fix loadFunction --- 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); }