aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/actions.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/lib/actions.php b/engine/lib/actions.php
index 58f38fd7a..004943e12 100644
--- a/engine/lib/actions.php
+++ b/engine/lib/actions.php
@@ -64,8 +64,11 @@
$CONFIG->actions = array();
}
- if (empty($filename)) {
- $filename = $CONFIG->path . "actions/" . $action . ".php";
+ if (empty($filename)) {
+ $path = "";
+ if (isset($CONFIG->path)) $path = $CONFIG->path;
+
+ $filename = $path . "actions/" . $action . ".php";
}
$CONFIG->actions[$action] = array('file' => $filename, 'public' => $public);