spl_autoload_register instead of __autoload

This commit is contained in:
Tobias Reich 2014-04-12 14:09:27 +02:00
parent f60cb3a946
commit 3e88ff4d68

View File

@ -1,13 +1,15 @@
<?php
/**
* @name Autoload
* @author Tobias Reich
* @copyright 2014 by Tobias Reich
*/
###
# @name Autoload
# @author Tobias Reich
# @copyright 2014 by Tobias Reich
###
function __autoload($class_name) {
function lycheeAutoloader($class_name) {
require __DIR__ . '/modules/' . $class_name . '.php';
}
spl_autoload_register('lycheeAutoloader');
?>