diff --git a/php/include/PLUSPEOPLE/autoload.php b/php/include/PLUSPEOPLE/autoload.php index 8d87398..bd5f7bf 100644 --- a/php/include/PLUSPEOPLE/autoload.php +++ b/php/include/PLUSPEOPLE/autoload.php @@ -32,8 +32,12 @@ // default timezone setting. - should be set on a per-server setup. date_default_timezone_set("Africa/Nairobi"); -function __autoload($class) { +//removed the deprecated __autoload function +function my_autoloader($class) { $fileName = str_replace("\\", "/", $class) . ".php"; require_once($fileName); } -?> \ No newline at end of file + +//spl_autoload_register function replacing __autoload +spl_autoload_register('my_autoloader'); +?>