Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -809,6 +809,7 @@ |
810 | 810 | 'diffs' => array( |
811 | 811 | 'history-title', |
812 | 812 | 'difference', |
| 813 | + 'difference-multipage', |
813 | 814 | 'lineno', |
814 | 815 | 'compareselectedversions', |
815 | 816 | 'showhideselectedversions', |
Index: trunk/phase3/includes/diff/DifferenceInterface.php |
— | — | @@ -186,7 +186,11 @@ |
187 | 187 | } else { |
188 | 188 | $wgOut->setPageTitle( $oldTitle . ', ' . $newTitle ); |
189 | 189 | } |
190 | | - $wgOut->setSubtitle( wfMsgExt( 'difference', array( 'parseinline' ) ) ); |
| 190 | + if ( $this->mNewPage->equals( $this->mOldPage ) ) { |
| 191 | + $wgOut->setSubtitle( wfMsgExt( 'difference', array( 'parseinline' ) ) ); |
| 192 | + } else { |
| 193 | + $wgOut->setSubtitle( wfMsgExt( 'difference-multipage', array( 'parseinline' ) ) ); |
| 194 | + } |
191 | 195 | $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
192 | 196 | |
193 | 197 | if ( !$this->mOldPage->userCanRead() || !$this->mNewPage->userCanRead() ) { |
Index: trunk/phase3/languages/messages/MessagesQqq.php |
— | — | @@ -1167,6 +1167,8 @@ |
1168 | 1168 | # Diffs |
1169 | 1169 | 'history-title' => 'Displayed as page title when you click on the "history" tab. The parameter $1 is the normal page title.', |
1170 | 1170 | 'difference' => 'Displayed under the title when viewing the difference between two or more edits.', |
| 1171 | +'difference-multipage' => 'Displayed under the title when viewing the difference between two or more pages. |
| 1172 | +See also {{msg-mw|difference}}.', |
1171 | 1173 | 'lineno' => 'Message used when comparing different versions of a page (diff). $1 is a line number.', |
1172 | 1174 | 'compareselectedversions' => 'Used as button in history pages.', |
1173 | 1175 | 'showhideselectedversions' => 'Text of the button which brings up the [[mw:RevisionDelete|RevisionDelete]] menu.', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1624,6 +1624,7 @@ |
1625 | 1625 | # Diffs |
1626 | 1626 | 'history-title' => 'Revision history of "$1"', |
1627 | 1627 | 'difference' => '(Difference between revisions)', |
| 1628 | +'difference-multipage' => '(Difference between pages)', |
1628 | 1629 | 'lineno' => 'Line $1:', |
1629 | 1630 | 'compareselectedversions' => 'Compare selected revisions', |
1630 | 1631 | 'showhideselectedversions' => 'Show/hide selected revisions', |