]> git.mxchange.org Git - friendica.git/commitdiff
space to the rescue ... ;-) CR request
authorRoland Haeder <roland@mxchange.org>
Thu, 30 Mar 2017 18:33:38 +0000 (20:33 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 30 Mar 2017 18:34:14 +0000 (20:34 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/dfrn.php
mod/dfrn_notify.php
mod/photos.php

index d9012fe702b498314ef088cb3a545bd371c729d1..83d76a0ae45cea961b58cd1ea60944fac1f10a0c 100644 (file)
@@ -955,7 +955,7 @@ class dfrn {
                        $idtosend = '1:' . $orig_id;
                }
 
-               $rino = get_config('system','rino_encrypt');
+               $rino = get_config('system', 'rino_encrypt');
                $rino = intval($rino);
 
                // use RINO1 if mcrypt isn't installed and RINO2 was selected
index ddb6afe4e4b32b2451ea0539c82098c5c196a51b..ddbc9219b1d209d14b609a9feb8d38b2b1702c19 100644 (file)
@@ -314,7 +314,7 @@ function dfrn_notify_content(App $a) {
                $encrypted_id = bin2hex($encrypted_id);
 
 
-               $rino = get_config('system','rino_encrypt');
+               $rino = get_config('system', 'rino_encrypt');
                $rino = intval($rino);
                // use RINO1 if mcrypt isn't installed and RINO2 was selected
                if ($rino == 2 && !function_exists('mcrypt_create_iv')) {
index a54aff326ad7848b24d38aa0f078218e92e32f6e..376f8ec7c636a3b01d047995e6fecc2f5c33c9d3 100644 (file)
@@ -18,7 +18,7 @@ function photos_init(App $a) {
                auto_redir($a, $a->argv[1]);
        }
 
-       if ((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
+       if ((get_config('system', 'block_public')) && (! local_user()) && (! remote_user())) {
                return;
        }
 
@@ -562,9 +562,9 @@ function photos_post(App $a) {
                                        if (isset($profile)) {
                                                unset($profile);
                                        }
-                                       if (strpos($tag,'@') === 0) {
+                                       if (strpos($tag, '@') === 0) {
                                                $name = substr($tag,1);
-                                               if ((strpos($name,'@')) || (strpos($name,'http://'))) {
+                                               if ((strpos($name, '@')) || (strpos($name, 'http://'))) {
                                                        $newname = $name;
                                                        $links = @Probe::lrdd($name);
                                                        if (count($links)) {
@@ -573,7 +573,7 @@ function photos_post(App $a) {
                                                                                $profile = $link['@attributes']['href'];
                                                                        }
                                                                        if ($link['@attributes']['rel'] === 'salmon') {
-                                                                               $salmon = '$url:' . str_replace(',','%sc',$link['@attributes']['href']);
+                                                                               $salmon = '$url:' . str_replace(',', '%sc', $link['@attributes']['href']);
                                                                                if (strlen($inform)) {
                                                                                        $inform .= ',';
                                                                                }
@@ -581,13 +581,13 @@ function photos_post(App $a) {
                                                                        }
                                                                }
                                                        }
-                                                       $taginfo[] = array($newname,$profile,$salmon);
+                                                       $taginfo[] = array($newname, $profile, $salmon);
                                                } else {
                                                        $newname = $name;
                                                        $alias = '';
                                                        $tagcid = 0;
-                                                       if (strrpos($newname,'+')) {
-                                                               $tagcid = intval(substr($newname,strrpos($newname, '+') + 1));
+                                                       if (strrpos($newname, '+')) {
+                                                               $tagcid = intval(substr($newname, strrpos($newname, '+') + 1));
                                                        }
 
                                                        if ($tagcid) {
@@ -649,9 +649,9 @@ function photos_post(App $a) {
                                                        $profile = str_replace(',', '%2c', $profile);
                                                        $str_tags .= '@[url='.$profile.']'.$newname.'[/url]';
                                                }
-                                       } elseif (strpos($tag,'#') === 0) {
+                                       } elseif (strpos($tag, '#') === 0) {
                                                $tagname = substr($tag, 1);
-                                               $str_tags .= '#[url='.App::get_baseurl()."/search?tag=".$tagname.']'.$tagname.'[/url]';
+                                               $str_tags .= '#[url=' . App::get_baseurl() . "/search?tag=" . $tagname . ']' . $tagname . '[/url]';
                                        }
                                }
                        }
@@ -988,7 +988,7 @@ function photos_content(App $a) {
        // photos/name/image/xxxxx/edit
 
 
-       if ((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
+       if ((get_config('system', 'block_public')) && (! local_user()) && (! remote_user())) {
                notice( t('Public access denied.') . EOL);
                return;
        }