update descartes

This commit is contained in:
osaajani 2019-10-29 18:33:30 +01:00
parent 508aeb0957
commit e15fb3cf8c
15 changed files with 112 additions and 60 deletions

View file

@ -14,18 +14,11 @@
{
$class = str_replace('\\', '/', $class); #Gestion des namespaces
if (file_exists(PWD . '/descartes/' . $class . '.php'))
{
require_once(PWD . '/descartes/' . $class . '.php');
}
elseif (file_exists(PWD . '/descartes/exceptions/' . $class . '.php'))
{
require_once(PWD . '/descartes/exceptions/' . $class . '.php');
}
elseif (file_exists(PWD . '/' . $class . '.php'))
if (file_exists(PWD . '/' . $class . '.php'))
{
require_once(PWD . '/' . $class . '.php');
}
}
}
spl_autoload_register('autoloader');