]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Auto-load from lib as well as classes
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 16 Jan 2009 02:35:56 +0000 (02:35 +0000)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 16 Jan 2009 02:35:56 +0000 (02:35 +0000)
lib/common.php

index 74c992f1c9af7c6fd0f080dba98b9d090a0a24bf..2ef26cfc628eb5b6e55db5ade3e26c51ed297744 100644 (file)
@@ -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');
     }
 }