Updates from hell

This commit is contained in:
ahwelp
2020-09-18 22:31:26 -03:00
parent df312bdc1b
commit aef7351b61
8 changed files with 127 additions and 71 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
spl_autoload_register(function ($class_name) {
$path = explode('\\', $class_name);
$fileName = $path[sizeof($path)-1];
$path[sizeof($path)-1] = '';
$path = strtolower(DIR_ROOT. implode(DIRECTORY_SEPARATOR, $path));
@@ -16,7 +16,7 @@ spl_autoload_register(function ($class_name) {
return include strtolower($path . $fileName . '.php');
}
include $path . $fileName . '.php';
@include $path . $fileName . '.php';
});
class Connection {