From 46c780b1360f10b8f3d3fe9d5aaa482af74873bc Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sun, 5 Feb 2006 22:54:12 +0000 Subject: [PATCH] Fix broken contribs link in block log --- includes/LogPage.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index f025742c6d..8251ef4ac1 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -180,12 +180,11 @@ class LogPage { $params[0] = $skin->makeLinkObj( Title::newFromText( $params[0] ), $params[0] ); break; case 'block': - $titleText = $title->getText(); - if( substr( $titleText, 0, 1 ) == '#' ) { - $titleLink = $titleText; + if( substr( $title->getText(), 0, 1 ) == '#' ) { + $titleLink = $$title->getText(); } else { - $titleLink = $skin->makeLinkObj( $title, $titleText ); - $titleLink .= ' (' . $skin->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Contributions/' . urlencode( $titleText ) ), wfMsg( 'contribslink' ) ) . ')'; + $titleLink = $skin->makeLinkObj( $title, $title->getText() ); + $titleLink .= ' (' . $skin->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Contributions/' . urlencode( $title->getDBkey() ) ), wfMsg( 'contribslink' ) ) . ')'; } break; default: -- 2.20.1