Updates from hell
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user