Skip to content

Commit

Permalink
Added event name to error string.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4722 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
amyreese committed Nov 6, 2007
1 parent a5f01b5 commit 35c4d30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/event_api.php
Expand Up @@ -73,6 +73,7 @@ function event_hook( $p_name, $p_callback, $p_plugin=false ) {
global $g_event_cache;

if ( !isset( $g_event_cache[$p_name] ) ) {
error_parameters( $p_name );
trigger_error( ERROR_EVENT_UNDECLARED, WARNING );
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion lang/strings_english.txt
Expand Up @@ -296,7 +296,7 @@ $MANTIS_ERROR[ERROR_TAG_NAME_INVALID] = 'That tag name is invalid.';
$MANTIS_ERROR[ERROR_TAG_NOT_ATTACHED] = 'That tag is not attached to that bug.';
$MANTIS_ERROR[ERROR_TAG_ALREADY_ATTACHED] = 'That tag already attached to that bug.';
$MANTIS_ERROR[ERROR_TOKEN_NOT_FOUND] = 'Token could not be found.';
$MANTIS_ERROR[ERROR_EVENT_UNDECLARED] = 'Event has not yet been declared.';
$MANTIS_ERROR[ERROR_EVENT_UNDECLARED] = 'Event \'%s\' has not yet been declared.';
$MANTIS_ERROR[ERROR_PLUGIN_NOT_REGISTERED] = 'Plugin is not registered with Mantis.';
$MANTIS_ERROR[ERROR_PLUGIN_ALREADY_INSTALLED] = 'Plugin is already installed.';
$MANTIS_ERROR[ERROR_PLUGIN_PAGE_NOT_FOUND] = 'Plugin page not found.';
Expand Down

0 comments on commit 35c4d30

Please sign in to comment.