From 419643394d641cf4383011c2a3d83987f9b4bf6c Mon Sep 17 00:00:00 2001 From: icewing Date: Mon, 21 Apr 2008 13:35:02 +0000 Subject: Marcus Povey * Removed tiny debug output git-svn-id: https://code.elgg.org/elgg/trunk@499 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/actions.php | 7 +++++-- 1 file 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); -- cgit v1.2.3