From 4f4abca338384f2e00d4a82916463195d2613fb6 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 9 Mar 2014 22:17:58 +0100 Subject: [PATCH] OAuthException should be detected for autoloading Or we may have conflicts with other filesin not in extlib. --- lib/framework.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.5