diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-02 15:54:18 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-02 15:54:18 +0000 |
commit | 99c8d44121a2d23d7ccb4c9506ecd742d190b590 (patch) | |
tree | dc7fedaf5bca8a26e894be687243c9905df08aa4 /engine/lib | |
parent | 92dfc7d626b37175f9b77b99b5547fc6dd6a6e0b (diff) | |
download | elgg-99c8d44121a2d23d7ccb4c9506ecd742d190b590.tar.gz elgg-99c8d44121a2d23d7ccb4c9506ecd742d190b590.tar.bz2 |
Fixed action registration for plugins
git-svn-id: https://code.elgg.org/elgg/trunk@369 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/actions.php | 5 |
1 files changed, 4 insertions, 1 deletions
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);
|