From 38ad44f6325a71d290d7582744efbb11bbe1c122 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 16 Jan 2009 02:35:56 +0000 Subject: [PATCH] Auto-load from lib as well as classes --- lib/common.php | 2 ++ 1 file changed, 2 insertions(+) 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'); } }