From: Rob Church Date: Tue, 5 Jun 2007 13:02:18 +0000 (+0000) Subject: * (bug 10145) Wrap the tool links on Special:Whatlinkshere in a classed span to allow... X-Git-Tag: 1.31.0-rc.0~52662 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=6cdd684a563d6898c8cb0e30bd61f639584d63e0;p=lhc%2Fweb%2Fwiklou.git * (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 --- 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 );