mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Template/Endpoints (Prep)
* modernize DB-Types - long term: should be split in class that describes the DB-Type and container class that handles multiples * make unchanging filter props static, allow lookup of criteria indizes through filter * move username/mail/password checks to util and make them usable as input filter
This commit is contained in:
@@ -115,11 +115,8 @@ spl_autoload_register(function (string $class) : void
|
||||
default => strtr($class, ['list' => ''])
|
||||
};
|
||||
|
||||
if (file_exists('includes/types/'.$cl.'.class.php'))
|
||||
{
|
||||
require_once 'includes/types/basetype.class.php';
|
||||
require_once 'includes/types/'.$cl.'.class.php';
|
||||
}
|
||||
if (file_exists('includes/dbtypes/'.$cl.'.class.php'))
|
||||
require_once 'includes/dbtypes/'.$cl.'.class.php';
|
||||
else
|
||||
throw new \Exception('could not register type class: '.$cl);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user