summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-01 16:17:43 -0700
committerZach Copley <zach@status.net>2009-10-01 16:17:43 -0700
commitb3bbaecf47d74102a2ed48cd0c773d33a4a49d59 (patch)
tree5aed1f7150ac6a988148499cd8beae8b1854648f /lib/common.php
parentb0ddb971e61bd98250c41e653ab2e649a9b08926 (diff)
parentf65baaaa4f48b84392200bb54161887669440cab (diff)
Merge branch '0.9.x' into refactor-api
* 0.9.x: change DB so OpenIDPlugin manages OpenID tables Some bug fixes check the schema add some more methods to Schema Added hook for Aside container Revert "Outputting UTF-8 charset in document header irrespective of mimetype." FOAF for Groups. use schema tool to create a table statusize schema-related modules test script for schema code make table def method of schema code work start a module for schema management
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index 58e208a4e..ce33c871b 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -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);