Skip to content
Browse files

Make the error number a parameter in $s_missing_error_string

  • Loading branch information...
1 parent 994fa50 commit 3acec1db90f812ed7399abc6623fa2e9df418bb2 @dregad dregad committed Oct 29, 2013
Showing with 3 additions and 1 deletion.
  1. +2 −0 core/error_api.php
  2. +1 −1 lang/strings_english.txt
View
2 core/error_api.php
@@ -414,6 +414,8 @@ function error_string( $p_error ) {
} else {
# Error string not found
$t_error = lang_get( 'missing_error_string' );
+ # Prepend the error number
+ array_unshift( $g_error_parameters, $p_error );
break;
}
}
View
2 lang/strings_english.txt
@@ -1559,7 +1559,7 @@ $s_month_december = 'December';
/**
* ERROR strings
*/
-$s_missing_error_string = 'Missing Error String: ';
+$s_missing_error_string = 'Missing Error String: %1$s';
$MANTIS_ERROR[ERROR_GENERIC] = 'An error occurred during this action. You may wish to report this error to your local administrator.';
$MANTIS_ERROR[ERROR_SQL] = 'SQL error detected.';

0 comments on commit 3acec1d

Please sign in to comment.
Something went wrong with that request. Please try again.