spl_autoload_register instead of __autoload
This commit is contained in:
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…
Reference in New Issue
Block a user