- // Add more content
- switch (getConfig('refback_enabled')) {
- case 'Y': // Refback enabled
- $content['refback_enabled_y'] = ' chkecked="checked"';
- $content['refback_enabled_n'] = '';
- break;
-
- case 'N': // Refback disabled
- $content['refback_enabled_y'] = '';
- $content['refback_enabled_n'] = ' chkecked="checked"';
- break;
+ // Translate Y/N switches
+ if (isRefbackEnabled()) {
+ // Enabled
+ $content['refback_enabled_y'] = ' checked="checked"';
+ } else {
+ // Disabled
+ $content['refback_enabled_n'] = ' checked="checked"';