Index: trunk/extensions/ReplaceText/SpecialReplaceText.php |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | Job::batchInsert( $jobs ); |
110 | 110 | |
111 | 111 | $count = $wgLang->formatNum( count( $jobs ) ); |
112 | | - $wgOut->addWikiMsg( 'replacetext_success', $this->target, $this->replacement, $count ); |
| 112 | + $wgOut->addWikiMsg( 'replacetext_success', "<tt><nowiki>{$this->target}</nowiki></tt>", "<tt><nowiki>{$this->replacement}</nowiki></tt>", $count ); |
113 | 113 | |
114 | 114 | // Link back |
115 | 115 | $sk = $this->user->getSkin(); |
— | — | @@ -144,7 +144,7 @@ |
145 | 145 | $res = $this->doSearchQuery( $this->replacement, $selected_namespaces ); |
146 | 146 | $count = $res->numRows(); |
147 | 147 | if ( $count > 0 ) { |
148 | | - $message = array( 'replacetext_warning', $wgLang->formatNum( $count ), $this->replacement ); |
| 148 | + $message = array( 'replacetext_warning', $wgLang->formatNum( $count ), "<tt><nowiki>{$this->replacement}</nowiki></tt>" ); |
149 | 149 | } |
150 | 150 | } elseif ( $this->move_pages ) { |
151 | 151 | $selected_namespaces = self::getSelectedNamespaces(); |
— | — | @@ -449,8 +449,9 @@ |
450 | 450 | 'rev_id = page_latest', |
451 | 451 | 'rev_text_id = old_id' |
452 | 452 | ); |
| 453 | + $sort = array( 'ORDER BY' => 'page_namespace, page_title' ); |
453 | 454 | |
454 | | - return $dbr->select( $tables, $vars, $conds, __METHOD__ ); |
| 455 | + return $dbr->select( $tables, $vars, $conds, __METHOD__ , $sort ); |
455 | 456 | } |
456 | 457 | |
457 | 458 | } |