From: Evan Prodromou Date: Fri, 16 Jan 2009 02:35:56 +0000 (+0000) Subject: Auto-load from lib as well as classes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=38ad44f6325a71d290d7582744efbb11bbe1c122;p=quix0rs-gnu-social.git Auto-load from lib as well as classes --- diff --git a/lib/common.php b/lib/common.php index 74c992f1c9..2ef26cfc62 100644 --- a/lib/common.php +++ b/lib/common.php @@ -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'); } }