X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofile.php;h=de1e2724899c4c7791422a17a84df618642fc571;hb=947b6073b1920dfcb7de273dd6dae9b1ff3d7458;hp=26b33d5f1cfcef812fe1a655dcb0407d02d69f21;hpb=07cfdba9c36d1887b2e9b53ab8054d5140a59f53;p=friendica.git diff --git a/mod/profile.php b/mod/profile.php old mode 100755 new mode 100644 index 26b33d5f1c..de1e272489 --- a/mod/profile.php +++ b/mod/profile.php @@ -14,9 +14,10 @@ function profile_init(&$a) { else { $r = q("select nickname from user where blocked = 0 and account_expired = 0 and verified = 1 order by rand() limit 1"); if(count($r)) { - $which = $r[0]['nickname']; + goaway($a->get_baseurl() . '/profile/' . $r[0]['nickname']); } else { + logger('profile error: mod_profile ' . $a->query_string, LOGGER_DEBUG); notice( t('Requested profile is not available.') . EOL ); $a->error = 404; return; @@ -124,9 +125,9 @@ function profile_content(&$a, $update = 0) { return; } - $a->page['aside'] .= categories_widget($a->get_baseurl(true) . '/profile/' . $a->profile['nickname'],(x($category) ? xmlify($category) : '')); - if(! $update) { + + if(x($_GET,'tab')) $tab = notags(trim($_GET['tab'])); @@ -148,6 +149,7 @@ function profile_content(&$a, $update = 0) { $celeb = ((($a->profile['page-flags'] == PAGE_SOAPBOX) || ($a->profile['page-flags'] == PAGE_COMMUNITY)) ? true : false); + $a->page['aside'] .= categories_widget($a->get_baseurl(true) . '/profile/' . $a->profile['nickname'],(x($category) ? xmlify($category) : '')); if(can_write_wall($a,$a->profile['profile_uid'])) {