* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
} // END - if
// Is the variable set
- if (isGetRequestParameterSet('mailer_lang')) {
+ if (isGetRequestElementSet('mailer_lang')) {
// Accept only first 2 chars
- $ret = substr(getRequestParameter('mailer_lang'), 0, 2);
+ $ret = substr(getRequestElement('mailer_lang'), 0, 2);
} elseif (isCurrentLanguageSet()) {
// Use cached
$ret = getCurrentLanguage();
// Init differences
$GLOBALS['lang_diff'][$target] = array();
$GLOBALS['lang_diff_count'][$target] = 0;
- if (!isset($GLOBALS['lang_diff_count']['total'])) $GLOBALS['lang_diff_count']['total'] = 0;
+ if (!isset($GLOBALS['lang_diff_count']['total'])) {
+ $GLOBALS['lang_diff_count']['total'] = 0;
+ } // END - if
// *Does* match by default
$matches = true;
} // END - if
// Now simply check it
- $masked = (strpos($GLOBALS['messages'][getCurrentLanguage()][$messageId], '%') !== false);
+ $masked = isInString('%', $GLOBALS['messages'][getCurrentLanguage()][$messageId]);
// Return result
return $masked;