forked from GNUsocial/gnu-social
Auto-load from lib as well as classes
This commit is contained in:
parent
8f25e4b48a
commit
38ad44f632
@ -169,5 +169,7 @@ function __autoload($class)
|
||||
require_once('OAuth.php');
|
||||
} else if (file_exists(INSTALLDIR.'/classes/' . $class . '.php')) {
|
||||
require_once(INSTALLDIR.'/classes/' . $class . '.php');
|
||||
} else if (file_exists(INSTALLDIR.'/lib/' . strtolower($class) . '.php')) {
|
||||
require_once(INSTALLDIR.'/lib/' . strtolower($class) . '.php');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user