summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-02 14:19:01 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-02 14:19:01 -0500
commitb0006f27bc6dabe5d0fc6926e8b2d73aaa71047d (patch)
tree5f6db814eac0071f3e5e2d2897c5add5cd4ee209
parent1ae171a36748094d7ef162da7af604aaa1f152c3 (diff)
downloadpfsense-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.php2
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);
}
OpenPOWER on IntegriCloud