Functions translateGender() and translateUserStatus() will own ask you kindly reporti...
authorRoland Häder <roland@mxchange.org>
Fri, 4 Dec 2009 02:43:09 +0000 (02:43 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 4 Dec 2009 02:43:09 +0000 (02:43 +0000)
inc/functions.php

index 9131865..3699d4e 100644 (file)
@@ -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