summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-13 15:54:08 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-13 15:54:08 -0400
commit5923f958c9afaaeedba9d41434cb3dbf53249a4e (patch)
treec7c1d37f38953e49c7206457d734044b18e51fa5 /lib/common.php
parent262e21c95977ba2d5bdd00393a8f387b33707026 (diff)
auto-load OAuthRequest
darcs-hash:20080813195408-84dde-a1de441ce50759f50b2c88b45d626dc4e0892d31.gz
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/common.php b/lib/common.php
index 9269ace89..ff56b0920 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');
}
}