forked from GNUsocial/gnu-social
OAuthException should be detected for autoloading
Or we may have conflicts with other filesin not in extlib.
This commit is contained in:
parent
31d8069779
commit
4f4abca338
@ -114,7 +114,7 @@ function __autoload($cls)
|
|||||||
} else if (mb_substr($cls, -6) == 'Action' &&
|
} else if (mb_substr($cls, -6) == 'Action' &&
|
||||||
file_exists(INSTALLDIR.'/actions/' . strtolower(mb_substr($cls, 0, -6)) . '.php')) {
|
file_exists(INSTALLDIR.'/actions/' . strtolower(mb_substr($cls, 0, -6)) . '.php')) {
|
||||||
require_once(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');
|
require_once('OAuth.php');
|
||||||
} else {
|
} else {
|
||||||
Event::handle('Autoload', array(&$cls));
|
Event::handle('Autoload', array(&$cls));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user