From 0ff775fcf00ac0c0dde5a6acd7806758e2983e24 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 27 Apr 2013 11:47:25 +0300 Subject: [PATCH] modernize autoloader --- index.php | 2 +- ipf.php | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) 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 @@