From: Andrey Kutejko Date: Sat, 27 Apr 2013 08:47:25 +0000 (+0300) Subject: modernize autoloader X-Git-Tag: 0.5~297 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=0ff775fcf00ac0c0dde5a6acd7806758e2983e24;p=ipf.git modernize autoloader --- diff --git a/index.php b/index.php index 790368e..7e3a322 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ $ipf_path = dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'ipf'; $project_path = dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'project'; -set_include_path($ipf_path.PATH_SEPARATOR.$project_path); +set_include_path(get_include_path() . PATH_SEPARATOR . $ipf_path . PATH_SEPARATOR . $project_path); require 'ipf.php'; IPF::boot($ipf_path, $project_path); return IPF_Project::getInstance()->run(); diff --git a/ipf.php b/ipf.php index af45fb5..6dde361 100644 --- a/ipf.php +++ b/ipf.php @@ -1,10 +1,23 @@