* Pass page title as parameters to "linkshere" and "nolinkshere" and update default...
authorRob Church <robchurch@users.mediawiki.org>
Fri, 18 Aug 2006 21:19:50 +0000 (21:19 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 18 Aug 2006 21:19:50 +0000 (21:19 +0000)
RELEASE-NOTES
includes/SpecialWhatlinkshere.php
languages/MessagesEn.php

index 8084190..368e1ec 100644 (file)
@@ -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 ==
 
index cedf604..ded98a3 100644 (file)
@@ -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' );
index a75186c..2a0793b 100644 (file)
@@ -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',