summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-16 02:35:56 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-16 02:35:56 +0000
commit38ad44f6325a71d290d7582744efbb11bbe1c122 (patch)
tree7e03ea80e18ff39b0cfbb04c063c3f8b72ad5098 /lib/common.php
parent8f25e4b48a5a578720baac0bc26dd5b9ba8fe3e3 (diff)
Auto-load from lib as well as classes
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php2
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');
}
}