From: Jens Frank Date: Tue, 7 Sep 2004 06:14:34 +0000 (+0000) Subject: BUG#403 User page link in Special:Contributions subtitle fails [1.4] X-Git-Tag: 1.5.0alpha1~2071 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0ffcd7b77e62e2cf36fcca03e6b1d5f61ce57eef;p=lhc%2Fweb%2Fwiklou.git BUG#403 User page link in Special:Contributions subtitle fails [1.4] Disable delayed link colouring for the link in the header. --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index fd75bf515c..ededb4376d 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -6,12 +6,15 @@ */ /** + * Special page "user contributions". + * Shows a list of the contributions of a user. * + * @return none + * @param string $par (optional) user name of the user for which to show the contributions */ function wfSpecialContributions( $par = '' ) { global $wgUser, $wgOut, $wgLang, $wgRequest; $fname = "wfSpecialContributions"; - $sysop = $wgUser->isSysop(); if( $par ) $target = $par; @@ -41,6 +44,11 @@ function wfSpecialContributions( $par = '' ) { $id = User::idFromName( $nt->getText() ); + # These links are not in the body, so we can't use the delayed link colouring. + # Disable it and enable it again later. + $pPLC=$sk->postParseLinkColour(); + $sk->postParseLinkColour( false ); + if ( 0 == $id ) { $ul = $nt->getText(); } else { @@ -52,6 +60,9 @@ function wfSpecialContributions( $par = '' ) { $ul .= " (" . $sk->makeLinkObj( $talk, $wgLang->getNsText(Namespace::getTalk(0)) ) . ")"; } + # Enable delayed link colouring again. + $sk->postParseLinkColour( $pPLC ); + if ( $target == 'newbies' ) { # View the contributions of all recently created accounts $max = $dbr->selectField( 'user', 'max(user_id)', false, $fname );