Revision b0006f27
Added by Stephen Beaver over 9 years ago
src/usr/local/www/classes/autoload.inc.php | ||
---|---|---|
4 | 4 |
$filename = str_replace('_', '/', $classname); |
5 | 5 |
|
6 | 6 |
// Build the full path, load it if it exists |
7 |
$filepath = "classes/$filename.class.php"; |
|
7 |
$filepath = "/usr/local/www/classes/$filename.class.php";
|
|
8 | 8 |
if (file_exists($filepath)) { |
9 | 9 |
require_once($filepath); |
10 | 10 |
} |
Also available in: Unified diff
Add full classpath to autoloader so that packages can run from their own directories.