]> git.andy128k.dev Git - ipf.git/commitdiff
fix loadFunction
authorAndrey Kutejko <andy128k@gmail.com>
Thu, 4 Jul 2013 16:17:50 +0000 (19:17 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Thu, 4 Jul 2013 16:17:50 +0000 (19:17 +0300)
ipf.php

diff --git a/ipf.php b/ipf.php
index 36d59b21910d865ab29c5a9871902c1648090f37..277e1ad0f6cc4429c2c4ff09091cdbf6b4ae2c09 100644 (file)
--- 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);
     }