]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/framework.php
OAuthException should be detected for autoloading
[quix0rs-gnu-social.git] / lib / framework.php
index 76ba549098effb2f27abee3607bbba55b3356763..9ff176e248a76d27e7332d043183335f5fe87c56 100644 (file)
@@ -114,7 +114,7 @@ function __autoload($cls)
     } else if (mb_substr($cls, -6) == 'Action' &&
                file_exists(INSTALLDIR.'/actions/' . strtolower(mb_substr($cls, 0, -6)) . '.php')) {
         require_once(INSTALLDIR.'/actions/' . strtolower(mb_substr($cls, 0, -6)) . '.php');
-    } else if ($cls == 'OAuthRequest') {
+    } else if ($cls === 'OAuthRequest' || $cls === 'OAuthException') {
         require_once('OAuth.php');
     } else {
         Event::handle('Autoload', array(&$cls));