r45877 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45876‎ | r45877 | r45878 >
Date:16:38, 18 January 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added link back to form
Modified paths:
  • /trunk/extensions/ReplaceText/SpecialReplaceText.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ReplaceText/SpecialReplaceText.php
@@ -82,6 +82,10 @@
8383 Job::batchInsert( $jobs );
8484 $num_modified_pages = count($jobs);
8585 $wgOut->addHTML( wfMsgExt( 'replacetext_success', array( 'escape', 'parsemag' ), $target_str, $replacement_str, $num_modified_pages) );
 86+ // link back to starting form
 87+ $rt_title = Title::makeTitleSafe( NS_SPECIAL, 'ReplaceText' );
 88+ $sk = $wgUser->getSkin();
 89+ $wgOut->addHTML( '<p>' . $sk->makeKnownLinkObj( $rt_title, wfMsg( 'replacetext_return' ) ) . '</p>' );
8690 } elseif ( $wgRequest->getCheck('target_str') ) { // very long elseif, look for "end elseif"
8791 $dbr =& wfGetDB( DB_SLAVE );
8892 $fname = 'doSpecialReplaceText';

Status & tagging log