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

diff --git a/ipf.php b/ipf.php
index 4565c8ce815c880de5cbace2bf659fdddf7cedc6..36d59b21910d865ab29c5a9871902c1648090f37 100644 (file)
--- a/ipf.php
+++ b/ipf.php
@@ -145,7 +145,7 @@ final class IPF
 
         $elts = explode('_', $function);
         array_pop($elts);
-        $file = strtolower(implode(DIRECTORY_SEPARATOR, $elts)).'.php';
+        $file = '/' . strtolower(implode(DIRECTORY_SEPARATOR, $elts)).'.php';
         @include IPF::$settings['ipf_path'] . $file;
         @include IPF::$settings['project_path'] . $file;
         if (!function_exists($function))