X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=13d6a36d2fc5db4c503b3ee9eafd995b74af7dbb;hb=9e19eef1941fff3e2a8785e5daa6d978e9de4900;hp=1dd5394341d69b0fd952869a94586ca82457e06b;hpb=29a48de5e29841f46791d42d6e329898688914fe;p=friendica.git diff --git a/boot.php b/boot.php index 1dd5394341..13d6a36d2f 100644 --- a/boot.php +++ b/boot.php @@ -2,7 +2,7 @@ set_time_limit(0); -define ( 'FRIENDIKA_VERSION', '2.1.954' ); +define ( 'FRIENDIKA_VERSION', '2.1.956' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); define ( 'DB_UPDATE_VERSION', 1053 ); @@ -2252,8 +2252,15 @@ function profile_sidebar($profile) { $photo = '
' . $profile['name'] . '
'; + // don't show connect link to yourself + $connect = (($profile['uid'] != local_user()) ? '
  • ' . t('Connect') . '
  • ' : ''); - + + // don't show connect link to authenticated visitors either + + if((remote_user()) && ($_SESSION['visitor_visiting'] == $profile['uid'])) + $connect = ''; + if((x($profile,'address') == 1) || (x($profile,'locality') == 1) || (x($profile,'region') == 1) @@ -2661,7 +2668,7 @@ function parse_xml_string($s) { $x = @simplexml_load_string($s2); if(count(libxml_get_errors())) foreach(libxml_get_errors() as $err) - logger('libxml: parse: ' . $err, LOGGER_DATA); + logger('libxml: parse: ' . $err->code." at ".$err->line.":".$err->column." : ".$err->message, LOGGER_DATA); libxml_clear_errors(); return $x; }}