} // END - if
// Check if the admin has entered the data
-if ((getConfig('wernis_api_id') == '') || (getConfig('wernis_api_md5') == '')) {
+if ((getWernisApiId() == '') || (getWernisApiMd5() == '')) {
// Something important is missing...
loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_API_DATA_MISSING--}');
return;
} // END - if
// Is the withdraw mode active?
- if (getConfig('wernis_withdraw_active') == 'Y') {
+ if (isWernisWithdrawActive()) {
// Add link
$content['withdraw_link'] = '<a class="menu_blur" style="height: 40px" href="{%url=modules.php?module=login&what=wernis&mode=withdraw%}"><div style="padding-top: 10px">{--MEMBER_WERNIS_MODE_WITHDRAW--}</div></a>';
} // END - if
// Add points to content array
$content['points'] = $points;
-} elseif ((getRequestParameter('mode') == 'withdraw') && (getConfig('wernis_withdraw_active') == 'Y')) {
+} elseif ((getRequestParameter('mode') == 'withdraw') && (isWernisWithdrawActive())) {
// Prepare data for the template
$content['points'] = getTotalPoints(getMemberId());
$content['wernis_userid'] = '';