From 66f213273decf0c6efbc89212efdcb2880a3d89f Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Thu, 4 Jul 2013 19:17:50 +0300 Subject: [PATCH] fix loadFunction --- ipf.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.49.0