]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2514 - separating action error messages for undefined and no action script...
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 14 Oct 2010 11:23:56 +0000 (11:23 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 14 Oct 2010 11:23:56 +0000 (11:23 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7080 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/actions.php
languages/en.php

index d164b14d6c59089052730063ee84cc6dcfb170e8..18475de275feed7160044055ee70ffafe8b0bfed 100644 (file)
@@ -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 {
index 7953f12d651118216936883655bf4d55795a2caa..d6b059a485762b7ed04c4bc2674e2d78ed17f21a 100644 (file)
@@ -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',