From: Roland Häder Date: Fri, 4 Dec 2009 02:43:09 +0000 (+0000) Subject: Functions translateGender() and translateUserStatus() will own ask you kindly reporti... X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=c8150951389d0fb8baa6c4f1126fff9a20b7e4e2 Functions translateGender() and translateUserStatus() will own ask you kindly reporting a bug to us if they cannot translate a user status --- diff --git a/inc/functions.php b/inc/functions.php index 9131865c19..3699d4ea8f 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -820,10 +820,10 @@ function translateGender ($gender) { case 'F': $ret = getMessage('GENDER_F'); break; case 'C': $ret = getMessage('GENDER_C'); break; default: - // Log unknown gender - logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown gender %s detected.", $gender)); + // Please report bugs on unknown genders + debug_report_bug(sprintf("Unknown gender %s detected.", $gender)); break; - } + } // END - switch // Return translated gender return $ret; @@ -845,8 +845,8 @@ function translateUserStatus ($status) { break; default: - logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected.", $status)); - $ret = getMaskedMessage('UNKNOWN_STATUS', $status); + // Please report all unknown status + debug_report_bug(sprintf("Unknown status %s detected.", $status)); break; } // END - switch