From: Rob Church Date: Fri, 18 Aug 2006 21:19:50 +0000 (+0000) Subject: * Pass page title as parameters to "linkshere" and "nolinkshere" and update default... X-Git-Tag: 1.31.0-rc.0~55952 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=847cc213e68035fc46a63ef7f8515e1be07d84eb;p=lhc%2Fweb%2Fwiklou.git * Pass page title as parameters to "linkshere" and "nolinkshere" and update default message text --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8084190684..368e1ec55f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -145,6 +145,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7054) Validate email address before sending email confirmation message * (bug 7061) Format title on "from (page)" links on Special:Allpages * (bug 7044) Introduce "padleft" and "padright" colon functions +* Pass page title as parameters to "linkshere" and "nolinkshere" and update + default message text == Languages updated == diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index cedf60491a..ded98a37ac 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -128,7 +128,7 @@ class WhatLinksHerePage { if ( !$dbr->numRows( $plRes ) && !$dbr->numRows( $tlRes ) ) { if ( 0 == $level ) { - $wgOut->addWikiText( wfMsg( 'nolinkshere' ) ); + $wgOut->addWikiText( wfMsg( 'nolinkshere', $this->target->getPrefixedText() ) ); } return; } @@ -187,7 +187,7 @@ class WhatLinksHerePage { } if ( 0 == $level ) { - $wgOut->addWikiText( wfMsg( 'linkshere' ) ); + $wgOut->addWikiText( wfMsg( 'linkshere', $this->target->getPrefixedText() ) ); } $isredir = wfMsg( 'isredirect' ); $istemplate = wfMsg( 'istemplate' ); diff --git a/languages/MessagesEn.php b/languages/MessagesEn.php index a75186c100..2a0793b555 100644 --- a/languages/MessagesEn.php +++ b/languages/MessagesEn.php @@ -1560,8 +1560,8 @@ Consult the [[Special:Log/delete|deletion log]] for a record of recent deletions 'notargettext' => 'You have not specified a target page or user to perform this function on.', 'linklistsub' => '(List of links)', -'linkshere' => 'The following pages link to here:', -'nolinkshere' => 'No pages link to here.', +'linkshere' => "The following pages link to '''[[$1]]''':", +'nolinkshere' => "No pages link to '''[[$1]]'''.", 'isredirect' => 'redirect page', 'istemplate' => 'inclusion',