Rename class
This commit is contained in:
parent
75595ed201
commit
b4cb5772ac
|
@ -4,13 +4,7 @@ session_name('EVOADMIN_SESS');
|
|||
session_start();
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
if (file_exists("lib/$class.php")) {
|
||||
require_once("lib/$class.php");
|
||||
}
|
||||
$class = strtolower($class);
|
||||
if (file_exists("lib/class.$class.php")) {
|
||||
require_once("lib/class.$class.php");
|
||||
}
|
||||
if (file_exists("lib/$class.php")) { require_once("lib/$class.php"); }
|
||||
});
|
||||
|
||||
DefaultController::init();
|
||||
|
|
Loading…
Reference in New Issue