From 99c8d44121a2d23d7ccb4c9506ecd742d190b590 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 2 Apr 2008 15:54:18 +0000 Subject: Fixed action registration for plugins git-svn-id: https://code.elgg.org/elgg/trunk@369 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/actions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/lib/actions.php b/engine/lib/actions.php index a7e1a8a24..b8c4bc05a 100644 --- a/engine/lib/actions.php +++ b/engine/lib/actions.php @@ -35,13 +35,16 @@ if (isset($CONFIG->actions[$action])) { if ($CONFIG->actions[$action]['public'] || $_SESSION['id'] != -1) { - if (@include($CONFIG->path . $CONFIG->actions[$action]['file'])) { + echo $CONFIG->actions[$action]['file']; var_export($CONFIG->actions); exit; + if (@include($CONFIG->actions[$action]['file'])) { } else { register_error(sprintf(elgg_echo('actionundefined'),$action)); } } else { register_error(elgg_echo('actionloggedout')); } + } else { + register_error(sprintf(elgg_echo('actionundefined'),$action)); } forward($CONFIG->url . $forwarder); -- cgit v1.2.3