]> git.mxchange.org Git - friendica-addons.git/blobdiff - remote_permissions/remote_permissions.php
revert addon Smarty3 templates to non-variable-based includes
[friendica-addons.git] / remote_permissions / remote_permissions.php
index 3c99f0084af0e15f5855fce6ae50efb96bc85ad6..8955130f8150176bd29b675cb72ca06dccb1bb3e 100644 (file)
@@ -191,15 +191,8 @@ function remote_permissions_content($a, $item_copy) {
 }
 
 function remote_permissions_plugin_admin(&$a, &$o){
-//     $t = file_get_contents( "addon/remote_permissions/admin.tpl" );
        $t = get_markup_template( "admin.tpl", "addon/remote_permissions/" );
-
-       $includes = array(
-               '$field_radio' => 'field_radio.tpl',
-       );
-       $includes = set_template_includes($a->theme['template_engine'], $includes);
-
-       $o = replace_macros($t, $includes + array(
+       $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)