r22757 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22756‎ | r22757 | r22758 >
Date:13:02, 5 June 2007
Author:robchurch
Status:old
Tags:
Comment:
* (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
Modified paths:
  • /trunk/phase3/includes/SpecialWhatlinkshere.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialWhatlinkshere.php
@@ -230,12 +230,14 @@
231231 $wgOut->addHTML( ' (' . implode( ', ', $props ) . ') ' );
232232 }
233233
234 - //add whatlinkshere link
235 - $whatlink = $this->skin->makeKnownLinkObj(
236 - SpecialPage::getTitleFor( 'Whatlinkshere', $nt->getPrefixedDBkey() ),
237 - wfMsgHtml( 'whatlinkshere-links' ) );
238 - $wgOut->addHTML(" ($whatlink)" );
239 -
 234+ # Space for utilities links, with a what-links-here link provided
 235+ $wlh = $this->skin->makeKnownLinkObj(
 236+ SpecialPage::getTitleFor( 'Whatlinkshere' ),
 237+ wfMsgHtml( 'whatlinkshere-links' ),
 238+ 'target=' . $nt->getPrefixedUrl()
 239+ );
 240+ $wgOut->addHtml( ' <span class="mw-whatlinkshere-tools">(' . $wlh . ')</span>' );
 241+
240242 if ( $row->page_is_redirect ) {
241243 if ( $level < 2 ) {
242244 $this->showIndirectLinks( $level + 1, $nt, 500 );

Follow-up revisions

RevisionCommit summaryAuthorDate
r22791Merged revisions 22747-22790 via svnmerge from...david09:21, 6 June 2007

Status & tagging log