X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Flanguage-functions.php;h=a12389d839bbd19ba0ff0980aa25051a87d11bf0;hb=575fd44953a62b4180248069ca4ff43d5ad7fa56;hp=f8e9d6162288b29089a2ba92f94bc9da481dc2ad;hpb=cb20090aa0558f1b74f0e9f925f29819e8bb3a45;p=mailer.git diff --git a/inc/language-functions.php b/inc/language-functions.php index f8e9d61622..a12389d839 100644 --- a/inc/language-functions.php +++ b/inc/language-functions.php @@ -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] ?>