From: Rob Church Date: Fri, 30 Dec 2005 23:16:42 +0000 (+0000) Subject: * (bug 4359) red [[user:#id]] links generated in [[special:Log]] X-Git-Tag: 1.6.0~833 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=93371357d4989633640154cb23ca90e040d80c65;p=lhc%2Fweb%2Fwiklou.git * (bug 4359) red [[user:#id]] links generated in [[special:Log]] --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 978eba51d8..b311c5dac9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -381,7 +381,7 @@ fully support the editing toolbar, but was found to be too confusing. * More reliable cache invalidation when templates outside the template namespace are changed * Removed $wgUseCategoryMagic option, categories are now enabled unconditionally - +* (bug 4359) red [[user:#id]] links generated in [[special:Log]] === Caveats === diff --git a/includes/LogPage.php b/includes/LogPage.php index 6d28ba319d..d6df6464fc 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -178,7 +178,14 @@ class LogPage { $movedTo = Title::newFromText( $params[0] ); $params[0] = $skin->makeLinkObj( $movedTo, $params[0] ); } else { - $titleLink = $skin->makeLinkObj( $title ); + # Bug 4359: red [[user:#id]] links generated in [[special:Log]] + # If it's an autoblock, don't do a link + if( $type == 'block' ) { + $titletext = $title->getText(); + $titleLink = ( ( substr( $titletext, 0, 1 ) == '#' ) ? $titletext : $skin->makeLinkObj( $title ) ); + } else { + $titleLink = $skin->makeLinkObj( $title ); + } } } else { $titleLink = $title->getPrefixedText();