From 6cdd684a563d6898c8cb0e30bd61f639584d63e0 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 5 Jun 2007 13:02:18 +0000 Subject: [PATCH] * (bug 10145) Wrap the tool links on Special:Whatlinkshere in a classed span to allow for user customisation via scripts and CSS * Avoid using the "sub page form" when generating links to special pages with other titles as parameters, it causes problems for long target titles --- includes/SpecialWhatlinkshere.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index 4d0c8acbf3..fdf3373b43 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -230,12 +230,14 @@ class WhatLinksHerePage { $wgOut->addHTML( ' (' . implode( ', ', $props ) . ') ' ); } - //add whatlinkshere link - $whatlink = $this->skin->makeKnownLinkObj( - SpecialPage::getTitleFor( 'Whatlinkshere', $nt->getPrefixedDBkey() ), - wfMsgHtml( 'whatlinkshere-links' ) ); - $wgOut->addHTML(" ($whatlink)" ); - + # Space for utilities links, with a what-links-here link provided + $wlh = $this->skin->makeKnownLinkObj( + SpecialPage::getTitleFor( 'Whatlinkshere' ), + wfMsgHtml( 'whatlinkshere-links' ), + 'target=' . $nt->getPrefixedUrl() + ); + $wgOut->addHtml( ' (' . $wlh . ')' ); + if ( $row->page_is_redirect ) { if ( $level < 2 ) { $this->showIndirectLinks( $level + 1, $nt, 500 ); -- 2.20.1