From: Tim Starling Date: Wed, 28 Jan 2004 12:57:05 +0000 (+0000) Subject: Cosmetic bug fix -- quickbar contributions link shown for user page regardless of... X-Git-Tag: 1.3.0beta1~1087 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=a89920de9a6e161e68fd8f67ccd379e54326351c;p=lhc%2Fweb%2Fwiklou.git Cosmetic bug fix -- quickbar contributions link shown for user page regardless of whether the user exists --- diff --git a/includes/SkinCologneBlue.php b/includes/SkinCologneBlue.php index b8e5de80b7..53655325bb 100644 --- a/includes/SkinCologneBlue.php +++ b/includes/SkinCologneBlue.php @@ -189,13 +189,13 @@ class SkinCologneBlue extends Skin { . $sep . $this->whatLinksHere() . $sep . $this->watchPageLinksLink(); - if ( Namespace::getUser() == $tns || Namespace::getTalk(Namespace::getUser()) == $tns ) { - $s .= $sep . $this->userContribsLink(); + if ( Namespace::getUser() == $tns || Namespace::getTalk(Namespace::getUser()) == $tns ) { if ( 0 != $wgUser->getID() ) { - $id=User::idFromName($wgTitle->getText()); - if ($id != 0) { - $s .= $sep . $this->emailUserLink(); - } + $id=User::idFromName($wgTitle->getText()); + if ($id != 0) { + $s .= $sep . $this->userContribsLink(); + $s .= $sep . $this->emailUserLink(); + } } } $s .= $sep;