diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-01-16 02:35:56 +0000 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-01-16 02:35:56 +0000 |
commit | 38ad44f6325a71d290d7582744efbb11bbe1c122 (patch) | |
tree | 7e03ea80e18ff39b0cfbb04c063c3f8b72ad5098 /lib | |
parent | 8f25e4b48a5a578720baac0bc26dd5b9ba8fe3e3 (diff) |
Auto-load from lib as well as classes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php index 74c992f1c..2ef26cfc6 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'); } } |