check the schema

This commit is contained in:
Evan Prodromou
2009-10-01 15:11:12 -04:00
parent b980f5e45b
commit d103522ff3
5 changed files with 48 additions and 1 deletions

View File

@@ -232,6 +232,12 @@ require_once INSTALLDIR.'/lib/serverexception.php';
Config::loadSettings();
// XXX: if plugins should check the schema at runtime, do that here.
if ($config['db']['schemacheck'] == 'runtime') {
Event::handle('CheckSchema');
}
// XXX: other formats here
define('NICKNAME_FMT', VALIDATE_NUM.VALIDATE_ALPHA_LOWER);