]> git.mxchange.org Git - friendica.git/blobdiff - mod/follow.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / mod / follow.php
index d17c874f69bcec5c8a9a5e8cc259a43f538de96d..f318dc202c04c9101b72cb9afe9b97352f6cbe3b 100644 (file)
@@ -7,7 +7,7 @@ require_once('include/contact_selectors.php');
 
 function follow_content(App &$a) {
 
-       if(! local_user()) {
+       if (! local_user()) {
                notice( t('Permission denied.') . EOL);
                goaway($_SESSION['return_url']);
                // NOTREACHED
@@ -63,7 +63,7 @@ function follow_content(App &$a) {
                $request = $ret["request"];
                $tpl = get_markup_template('dfrn_request.tpl');
        } else {
-               $request = $a->get_baseurl()."/follow";
+               $request = App::get_baseurl()."/follow";
                $tpl = get_markup_template('auto_request.tpl');
        }
 
@@ -151,7 +151,7 @@ function follow_content(App &$a) {
 
 function follow_post(App &$a) {
 
-       if(! local_user()) {
+       if (! local_user()) {
                notice( t('Permission denied.') . EOL);
                goaway($_SESSION['return_url']);
                // NOTREACHED
@@ -175,12 +175,12 @@ function follow_post(App &$a) {
                        notice($result['message']);
                goaway($return_url);
        } elseif ($result['cid'])
-               goaway($a->get_baseurl().'/contacts/'.$result['cid']);
+               goaway(App::get_baseurl().'/contacts/'.$result['cid']);
 
        info( t('Contact added').EOL);
 
        if(strstr($return_url,'contacts'))
-               goaway($a->get_baseurl().'/contacts/'.$contact_id);
+               goaway(App::get_baseurl().'/contacts/'.$contact_id);
 
        goaway($return_url);
        // NOTREACHED