Better exception handling in index

Some better exception handling in Web entry point.
This commit is contained in:
Evan Prodromou
2009-02-09 07:25:35 -05:00
parent aa06d760b3
commit 5466f6a6d0
2 changed files with 16 additions and 15 deletions

View File

@@ -182,6 +182,8 @@ foreach ($_config_files as $_config_file) {
}
}
// XXX: how many of these could be auto-loaded on use?
require_once('Validate.php');
require_once('markdown.php');
@@ -193,6 +195,9 @@ require_once(INSTALLDIR.'/lib/subs.php');
require_once(INSTALLDIR.'/lib/Shorturl_api.php');
require_once(INSTALLDIR.'/lib/twitter.php');
require_once(INSTALLDIR.'/lib/clientexception.php');
require_once(INSTALLDIR.'/lib/serverexception.php');
// XXX: other formats here
define('NICKNAME_FMT', VALIDATE_NUM.VALIDATE_ALPHA_LOWER);