From 5923f958c9afaaeedba9d41434cb3dbf53249a4e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 13 Aug 2008 15:54:08 -0400 Subject: [PATCH] auto-load OAuthRequest darcs-hash:20080813195408-84dde-a1de441ce50759f50b2c88b45d626dc4e0892d31.gz --- lib/common.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/common.php b/lib/common.php index 9269ace89d..ff56b09207 100644 --- a/lib/common.php +++ b/lib/common.php @@ -116,7 +116,9 @@ require_once(INSTALLDIR.'/lib/theme.php'); require_once(INSTALLDIR.'/lib/mail.php'); 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'); } }