]> git.mxchange.org Git - friendica-addons.git/commitdiff
remote_permissions: doesn't work if allow_url_fopen turned off
authorfriendica <info@friendica.com>
Thu, 13 Dec 2012 22:39:43 +0000 (14:39 -0800)
committerfriendica <info@friendica.com>
Thu, 13 Dec 2012 22:39:43 +0000 (14:39 -0800)
group_text.tgz
remote_permissions.tgz
remote_permissions/remote_permissions.php

index 932ee79d9089b0c6034ca3187449d6c4984d522d..5dca3140f896fd3f43daabf3470faba05cb1b81f 100644 (file)
Binary files a/group_text.tgz and b/group_text.tgz differ
index 169273ddf0239f7b9d57b8c5676feca879c63bf6..8c137d10fd65fc5204c3ee7a180b06008ef01559 100644 (file)
Binary files a/remote_permissions.tgz and b/remote_permissions.tgz differ
index 1e71cbc844fabc191cfe24dada20b1d24c038616..95e74ee194598f1068b1758221fb6c46d405b999 100644 (file)
@@ -39,7 +39,7 @@ function remote_permissions_settings(&$a,&$o) {
        
        /* Add some HTML to the existing form */
 
-       $t = file_get_contents( $a->get_baseurl() . "/addon/remote_permissions/settings.tpl" );
+       $t = file_get_contents("addon/remote_permissions/settings.tpl" );
        $o .= replace_macros($t, array(
                '$remote_perms_title' => t('Remote Permissions Settings'),
                '$remote_perms_label' => t('Allow recipients of your private posts to see the other recipients of the posts'),
@@ -190,7 +190,7 @@ function remote_permissions_content($a, $item_copy) {
 }
 
 function remote_permissions_plugin_admin(&$a, &$o){
-       $t = file_get_contents( $a->get_baseurl() . "/addon/remote_permissions/admin.tpl" );
+       $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),