diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-02 14:19:01 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-02 14:19:01 -0500 |
commit | b0006f27bc6dabe5d0fc6926e8b2d73aaa71047d (patch) | |
tree | 5f6db814eac0071f3e5e2d2897c5add5cd4ee209 | |
parent | 1ae171a36748094d7ef162da7af604aaa1f152c3 (diff) | |
download | pfsense-b0006f27bc6dabe5d0fc6926e8b2d73aaa71047d.zip pfsense-b0006f27bc6dabe5d0fc6926e8b2d73aaa71047d.tar.gz |
Add full classpath to autoloader so that packages can run from their own directories.
-rw-r--r-- | src/usr/local/www/classes/autoload.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/classes/autoload.inc.php b/src/usr/local/www/classes/autoload.inc.php index b036eb4..f6ad1b8 100644 --- a/src/usr/local/www/classes/autoload.inc.php +++ b/src/usr/local/www/classes/autoload.inc.php @@ -4,7 +4,7 @@ function pfsense_www_class_autoloader($classname) { $filename = str_replace('_', '/', $classname); // Build the full path, load it if it exists - $filepath = "classes/$filename.class.php"; + $filepath = "/usr/local/www/classes/$filename.class.php"; if (file_exists($filepath)) { require_once($filepath); } |