-function remote_permissions_plugin_admin(&$a, &$o){
- $t = file_get_contents( "addon/remote_permissions/admin.tpl" );
- $o = replace_macros($t, array(
- '$submit' => t('Submit'),
- '$global' => array('remotepermschoice', t('Global'), 1, t('The posts of every user on this server show the post recipients'), get_config('remote_perms', 'global') == 1),
- '$individual' => array('remotepermschoice', t('Individual'), 2, t('Each user chooses whether his/her posts show the post recipients'), get_config('remote_perms', 'global') == 0)
- ));
+function remote_permissions_addon_admin(&$a, &$o){
+ $t = get_markup_template( "admin.tpl", "addon/remote_permissions/" );
+ $o = replace_macros($t, [
+ '$submit' => L10n::t('Save Settings'),
+ '$global' => ['remotepermschoice', L10n::t('Global'), 1, L10n::t('The posts of every user on this server show the post recipients'), Config::get('remote_perms', 'global') == 1],
+ '$individual' => ['remotepermschoice', L10n::t('Individual'), 2, L10n::t('Each user chooses whether his/her posts show the post recipients'), Config::get('remote_perms', 'global') == 0]
+ ]);