From: Andrey Kutejko Date: Sat, 22 Jun 2013 13:35:57 +0000 (+0300) Subject: fix loadFunction (directory separator) X-Git-Tag: 0.5~213 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=fd3eb8c3f8f1fee3337fa6e12cadc75679355fff;p=ipf.git fix loadFunction (directory separator) --- diff --git a/ipf.php b/ipf.php index 4565c8c..36d59b2 100644 --- 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))