From: <nuc...@us...> - 2007-11-06 21:48:33
|
Revision: 4722 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=4722&view=rev Author: nuclear_eclipse Date: 2007-11-06 13:48:08 -0800 (Tue, 06 Nov 2007) Log Message: ----------- Added event name to error string. Modified Paths: -------------- trunk/mantisbt/core/event_api.php trunk/mantisbt/lang/strings_english.txt Modified: trunk/mantisbt/core/event_api.php =================================================================== --- trunk/mantisbt/core/event_api.php 2007-11-04 21:40:33 UTC (rev 4721) +++ trunk/mantisbt/core/event_api.php 2007-11-06 21:48:08 UTC (rev 4722) @@ -73,6 +73,7 @@ global $g_event_cache; if ( !isset( $g_event_cache[$p_name] ) ) { + error_parameters( $p_name ); trigger_error( ERROR_EVENT_UNDECLARED, WARNING ); return null; } Modified: trunk/mantisbt/lang/strings_english.txt =================================================================== --- trunk/mantisbt/lang/strings_english.txt 2007-11-04 21:40:33 UTC (rev 4721) +++ trunk/mantisbt/lang/strings_english.txt 2007-11-06 21:48:08 UTC (rev 4722) @@ -296,7 +296,7 @@ $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.'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |