robchurch(a)svn.wikimedia.org schrieb:
Revision: 23515
Author: robchurch
Date: 2007-06-28 18:18:42 +0000 (Thu, 28 Jun 2007)
Log Message:
-----------
Pass the two titles in plain text as (unused per default) parameters
$3 and $4 to
allow additional goodies in the message (parser functions,
extra links etc.)
Modified: trunk/phase3/includes/SpecialMovepage.php
===================================================================
--- trunk/phase3/includes/SpecialMovepage.php 2007-06-28 18:16:56
UTC (rev
23514)
+++ trunk/phase3/includes/SpecialMovepage.php
2007-06-28 18:18:42
UTC (rev 23515)
@@ -278,7 +278,8 @@
$olink = $wgUser->getSkin()->makeKnownLinkObj( $old, '',
'redirect=no' );
$nlink =
$wgUser->getSkin()->makeKnownLinkObj( $new );
- $wgOut->addHtml( wfMsgExt( 'movepage-moved', array(
'parseinline', 'replaceafter' ), $olink, $nlink ) );
+ $wgOut->addHtml( wfMsgExt(
'movepage-moved', array(
'parseinline', 'replaceafter' ),
+ $olink, $nlink,
$old->getPrefixedText(),
$new->getPrefixedText() ) );
Something is wrong with $3 and $4.
If I use in [[MediaWiki:Movepage-moved]] something like:
"For what links here see [[Special:Whatlinkshere/$3]]"
After a move I get:
"For what links here see Special:Whatlinkshere/title"
but the URL contains still $3:
http://localhost/wikitest/index.php/Special:Whatlinkshere/$3
Raymond