spl_autoload_register instead of __autoload

pull/127/head
Tobias Reich 11 years ago
parent f60cb3a946
commit 3e88ff4d68

@ -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');
?>
Loading…
Cancel
Save