From: Mikael Nordfeldth Date: Sun, 9 Mar 2014 21:17:58 +0000 (+0100) Subject: OAuthException should be detected for autoloading X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4f4abca338384f2e00d4a82916463195d2613fb6;p=quix0rs-gnu-social.git OAuthException should be detected for autoloading Or we may have conflicts with other filesin not in extlib. --- diff --git a/lib/framework.php b/lib/framework.php index 76ba549098..9ff176e248 100644 --- a/lib/framework.php +++ b/lib/framework.php @@ -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));