Auto-load from lib as well as classes

This commit is contained in:
Evan Prodromou 2009-01-16 02:35:56 +00:00
parent 8f25e4b48a
commit 38ad44f632

View File

@ -169,5 +169,7 @@ function __autoload($class)
require_once('OAuth.php'); require_once('OAuth.php');
} else if (file_exists(INSTALLDIR.'/classes/' . $class . '.php')) { } else if (file_exists(INSTALLDIR.'/classes/' . $class . '.php')) {
require_once(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');
} }
} }