- $o = replace_macros($o, array(
- '$oidhtml' => $oidhtml,
- '$invitations' => get_config('system','invitation_only'),
- '$permonly' => $a->config['register_policy'] == REGISTER_APPROVE,
- '$permonlybox' => array('permonlybox', t('Note for the admin'), '', t('Leave a message for the admin, why you want to join this node')),
- '$invite_desc' => t('Membership on this site is by invitation only.'),
- '$invite_label' => t('Your invitation ID: '),
- '$invite_id' => $invite_id,
- '$realpeople' => $realpeople,
- '$regtitle' => t('Registration'),
- '$registertext' =>((x($a->config,'register_text'))
- ? bbcode($a->config['register_text'])
- : "" ),
+ $o = Renderer::replaceMacros($tpl, [
+ '$invitations' => Config::get('system', 'invitation_only'),
+ '$permonly' => intval(Config::get('config', 'register_policy')) === REGISTER_APPROVE,
+ '$permonlybox' => ['permonlybox', L10n::t('Note for the admin'), '', L10n::t('Leave a message for the admin, why you want to join this node')],
+ '$invite_desc' => L10n::t('Membership on this site is by invitation only.'),
+ '$invite_label' => L10n::t('Your invitation code: '),
+ '$invite_id' => $invite_id,
+ '$regtitle' => L10n::t('Registration'),
+ '$registertext' => BBCode::convert(Config::get('config', 'register_text', '')),