From 93371357d4989633640154cb23ca90e040d80c65 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Fri, 30 Dec 2005 23:16:42 +0000 Subject: [PATCH] * (bug 4359) red [[user:#id]] links generated in [[special:Log]] --- RELEASE-NOTES | 2 +- includes/LogPage.php | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) 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(); -- 2.20.1