Rewrites/fixes for handling config entries in SQLs
[mailer.git] / inc / language-functions.php
index f8e9d6162288b29089a2ba92f94bc9da481dc2ad..a12389d839bbd19ba0ff0980aa25051a87d11bf0 100644 (file)
@@ -324,5 +324,20 @@ function getLanguageComparisonDifference ($target) {
        return $GLOBALS['lang_diff_count'][$target];
 }
 
+// Checks wether the given message is masked
+function isMessageMasked ($messageId) {
+       // Is the message id valid?
+       if (!isMessageIdValid($messageId)) {
+               // No, then abort here
+               debug_report_bug(__FUNCTION__ . ': Invalid message id ' . $messageId . ' detected.');
+       } // END - if
+
+       // Now simply check it
+       $masked = (strpos($GLOBALS['messages'][getCurrentLanguage()][$messageId], '%') !== false);
+
+       // Return result
+       return $masked;
+}
+
 // [EOF]
 ?>