]> git.andy128k.dev Git - ipf.git/commitdiff
fix loadFunction
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 22 Jun 2013 13:22:17 +0000 (16:22 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 22 Jun 2013 13:22:17 +0000 (16:22 +0300)
ipf.php

diff --git a/ipf.php b/ipf.php
index fc92ad77e62bc05adb2d8d9bbd1bf71087f2c3f3..4565c8ce815c880de5cbace2bf659fdddf7cedc6 100644 (file)
--- 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);
     }