* Move message 'difference' in language files to recentchanges section as it is only used in RecentChanges.php now.
* Show a warning message when creating/editing a user (talk) page but the user
does not exists
* (bug 8396) Ignore out-of-date serialised message caches
+* Add descriptive <title> to revision difference page
=== Bug fixes in 1.12 ===
$this->mRefreshCache = $refreshCache;
}
+ /**
+ * Show difference between revisions
+ * @param $diffOnly bool show the difference only, no preview
+ */
function showDiffPage( $diffOnly = false ) {
global $wgUser, $wgOut, $wgUseExternalEditor, $wgUseRCPatrol;
$fname = 'DifferenceEngine::showDiffPage';
# a diff between a version V and its previous version V' AND the version V
# is the first version of that article. In that case, V' does not exist.
if ( $this->mOldid === false ) {
+ $wgOut->setPageTitle( wfMsg( 'difference-title', $this->mTitle->getPrefixedText() ) );
$this->showFirstRevision();
$this->renderNewRevision(); // should we respect $diffOnly here or not?
wfProfileOut( $fname );
$oldTitle = $this->mOldPage->getPrefixedText();
$newTitle = $this->mNewPage->getPrefixedText();
if( $oldTitle == $newTitle ) {
- $wgOut->setPageTitle( $newTitle );
+ $wgOut->setPageTitle( wfMsg( 'difference-title', $newTitle ) );
} else {
- $wgOut->setPageTitle( $oldTitle . ', ' . $newTitle );
+ $wgOut->setPageTitle( wfMsg( 'difference-title', $oldTitle . ', ' . $newTitle ) );
}
- $wgOut->setSubtitle( wfMsg( 'difference' ) );
$wgOut->setRobotpolicy( 'noindex,nofollow' );
if ( !( $this->mOldPage->userCanRead() && $this->mNewPage->userCanRead() ) ) {
$wgOut->addHTML( $header );
- $wgOut->setSubtitle( wfMsg( 'difference' ) );
$wgOut->setRobotpolicy( 'noindex,nofollow' );
wfProfileOut( $fname );
wfProfileOut( $fname );
}
}
-
-
-
# Diffs
'history-title' => 'Versionsgeschichte von „$1“',
-'difference' => '(Unterschied zwischen Versionen)',
+'difference-title' => 'Versionsunterschied: „$1“',
'loadingrev' => 'Lade Versionen zur Unterscheidung',
'lineno' => 'Zeile $1:',
'editcurrent' => 'Die aktuelle Version dieser Seite bearbeiten',
'rc_categories_any' => 'Alle',
'rc-change-size' => '$1 {{PLURAL:$1|Byte|Bytes}}',
'newsectionsummary' => 'Neuer Abschnitt /* $1 */',
+'difference' => '(Unterschied zwischen Versionen)',
# Recent changes linked
'recentchangeslinked' => 'Änderungen an verlinkten Seiten',
# Diffs
'history-title' => 'Revision history of "$1"',
-'difference' => '(Difference between revisions)',
+'difference-title' => 'Difference between revisions of "$1"',
'loadingrev' => 'loading revision for diff',
'lineno' => 'Line $1:',
'editcurrent' => 'Edit the current version of this page',
'rc_categories_any' => 'Any',
'rc-change-size' => '$1', # only translate this message to other languages if you have to change it
'newsectionsummary' => '/* $1 */ new section',
+'difference' => '(Difference between revisions)',
# Recent changes linked
'recentchangeslinked' => 'Related changes',
),
'diffs' => array(
'history-title',
- 'difference',
+ 'difference-title',
'loadingrev',
'lineno',
'editcurrent',
'rc_categories_any',
'rc-change-size',
'newsectionsummary',
+ 'difference',
),
'recentchangeslinked' => array(
'recentchangeslinked',