diff options
Diffstat (limited to 'engine/lib/actions.php')
-rw-r--r-- | engine/lib/actions.php | 7 |
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);
|