]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/surfbar_functions.php
Some old lost language constants fixed
[mailer.git] / inc / libs / surfbar_functions.php
index 09bbe89931dfd5da8fa9fd29e1e06f8630d461c6..278ad21d4a7d35a72adffef5da2cf17fc420df99 100644 (file)
@@ -737,14 +737,8 @@ function translateSurfbarUrlStatus ($status) {
        // Create constant name
        $constantName = sprintf("SURFBAR_URL_STATUS_%s", strtoupper($status));
 
        // Create constant name
        $constantName = sprintf("SURFBAR_URL_STATUS_%s", strtoupper($status));
 
-       // Set default translated status
-       $statusTranslated = '!'.$constantName.'!';
-
-       // Is the constant there?
-       if (defined($constantName)) {
-               // Then get it's value
-               $statusTranslated = constant($constantName);
-       } // END - if
+       // Get message
+       $statusTranslated = getMessage($constantName);
 
        // Return result
        return $statusTranslated;
 
        // Return result
        return $statusTranslated;