From: Andrey Kutejko Date: Thu, 4 Jul 2013 16:17:50 +0000 (+0300) Subject: fix loadFunction X-Git-Tag: 0.5~192 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=66f213273decf0c6efbc89212efdcb2880a3d89f;p=ipf.git fix loadFunction --- diff --git a/ipf.php b/ipf.php index 36d59b2..277e1ad 100644 --- a/ipf.php +++ b/ipf.php @@ -146,8 +146,8 @@ final class IPF $elts = explode('_', $function); array_pop($elts); $file = '/' . strtolower(implode(DIRECTORY_SEPARATOR, $elts)).'.php'; - @include IPF::$settings['ipf_path'] . $file; - @include IPF::$settings['project_path'] . $file; + @include_once IPF::$settings['ipf_path'] . $file; + @include_once IPF::$settings['project_path'] . $file; if (!function_exists($function)) throw new IPF_Exception('Impossible to load the function: '.$function.' in '.$file); }