r45878 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45877‎ | r45878 | r45879 >
Date:16:46, 18 January 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added same 'return to form' link to 'no replacements found' message
Modified paths:
  • /trunk/extensions/ReplaceText/SpecialReplaceText.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ReplaceText/SpecialReplaceText.php
@@ -193,6 +193,10 @@
194194 }
195195 if ($num_modified_pages == 0) {
196196 $wgOut->addHTML(wfMsg('replacetext_noreplacement', $target_str));
 197+ // link back to starting form
 198+ $rt_title = Title::makeTitleSafe( NS_SPECIAL, 'ReplaceText' );
 199+ $sk = $wgUser->getSkin();
 200+ $wgOut->addHTML( '<p>' . $sk->makeKnownLinkObj( $rt_title, wfMsg( 'replacetext_return' ) ) . '</p>' );
197201 } else {
198202 $javascript_text =<<<END
199203 <script type="text/javascript">

Status & tagging log