From a5eeffe3bd68c2fc06c20dc9633ab504a7ace0c2 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 14 Oct 2010 11:23:56 +0000 Subject: Fixes #2514 - separating action error messages for undefined and no action script file git-svn-id: http://code.elgg.org/elgg/trunk@7080 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/actions.php | 2 +- languages/en.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/lib/actions.php b/engine/lib/actions.php index d164b14d6..18475de27 100644 --- a/engine/lib/actions.php +++ b/engine/lib/actions.php @@ -97,7 +97,7 @@ function action($action, $forwarder = "") { // @todo make this better! if ($event_result) { if (!include($CONFIG->actions[$action]['file'])) { - register_error(sprintf(elgg_echo('actionundefined'), $action)); + register_error(sprintf(elgg_echo('actionnotfound'), $action)); } } } else { diff --git a/languages/en.php b/languages/en.php index 7953f12d6..d6b059a48 100644 --- a/languages/en.php +++ b/languages/en.php @@ -39,6 +39,7 @@ $english = array( 'exception:title' => "Fatal Error.", 'actionundefined' => "The requested action (%s) was not defined in the system.", + 'actionnotfound' => "The action file for %s was not found.", 'actionloggedout' => "Sorry, you cannot perform this action while logged out.", 'actionunauthorized' => 'You are unauthorized to perform this action', -- cgit v1.2.3