Now projects can have captal letters on the folder name
This commit is contained in:
+2
-1
@@ -6,7 +6,8 @@ spl_autoload_register(function ($class_name) {
|
||||
|
||||
$path[sizeof($path)-1] = '';
|
||||
|
||||
$path = strtolower(DIR_ROOT. implode(DIRECTORY_SEPARATOR, $path));
|
||||
//$path = strtolower(DIR_ROOT. implode(DIRECTORY_SEPARATOR, $path));
|
||||
$path = DIR_ROOT . strtolower(implode(DIRECTORY_SEPARATOR, $path));
|
||||
|
||||
if(is_file($path . $fileName . '.php')){
|
||||
return include $path . $fileName . '.php';
|
||||
|
||||
Reference in New Issue
Block a user