auto-load OAuthRequest

darcs-hash:20080813195408-84dde-a1de441ce50759f50b2c88b45d626dc4e0892d31.gz
This commit is contained in:
Evan Prodromou 2008-08-13 15:54:08 -04:00
parent 262e21c959
commit 5923f958c9

View File

@ -116,7 +116,9 @@ require_once(INSTALLDIR.'/lib/theme.php');
require_once(INSTALLDIR.'/lib/mail.php'); require_once(INSTALLDIR.'/lib/mail.php');
function __autoload($class) { function __autoload($class) {
if (file_exists(INSTALLDIR.'/classes/' . $class . '.php')) { if ($class == 'OAuthRequest') {
require_once('OAuth.php');
} else if (file_exists(INSTALLDIR.'/classes/' . $class . '.php')) {
require_once(INSTALLDIR.'/classes/' . $class . '.php'); require_once(INSTALLDIR.'/classes/' . $class . '.php');
} }
} }