and $2 (=revision numbers) for prettier output.
* (bug 10080) Users can now modify an existing block without unblocking first.
* (bug 12859) $wgRateLimitsExcludedGroups has been deprecated in favor of
$wgGroupPermissions[]['noratelimit'].
+* (Bug 13828) Split parameter $1 of MediaWiki:Missingarticle into $1 (=title)
+ and $2 (=revision numbers)
=== API changes in 1.13 ===
# Pre-fill content with error message so that if something
# fails we'll have something telling us what we intended.
$t = $this->mTitle->getPrefixedText();
- if( $oldid ) {
- $t .= ' ' . wfMsgExt( 'missingarticle-rev', array( 'escape' ), $oldid );
- }
- $this->mContent = wfMsg( 'missingarticle', $t ) ;
+ $d = $oldid ? wfMsgExt( 'missingarticle-rev', array( 'escape' ), $oldid ) : '';
+ $this->mContent = wfMsg( 'missing-article', $t, $d ) ;
if( $oldid ) {
$revision = Revision::newFromId( $oldid );
# Failed to load, replace text with error message
$t = $this->mTitle->getPrefixedText();
if( $oldid ) {
- $t .= ' ' . wfMsgExt( 'missingarticle-rev', array( 'escape' ), $oldid );
- $text = wfMsg( 'missingarticle', $t );
+ $d = wfMsgExt( 'missingarticle-rev', array( 'escape' ), $oldid );
+ $text = wfMsg( 'missing-article', $t, $d );
} else {
$text = wfMsg( 'noarticletext' );
}
$wgOut->setArticleFlag( false );
if ( ! $this->loadRevisionData() ) {
- $t = $this->mTitle->getPrefixedText() . ' ' . wfMsgExt( 'missingarticle-diff', array( 'escape' ), $this->mOldid, $this->mNewid );
+ $t = $this->mTitle->getPrefixedText();
+ $d = wfMsgExt( 'missingarticle-diff', array( 'escape' ), $this->mOldid, $this->mNewid );
$wgOut->setPagetitle( wfMsg( 'errorpagetitle' ) );
- $wgOut->addWikiMsg( 'missingarticle', "<nowiki>$t</nowiki>" );
+ $wgOut->addWikiMsg( 'missing-article', "<nowiki>$t</nowiki>", $d );
wfProfileOut( __METHOD__ );
return;
}
# Get article text from the DB
#
if ( ! $this->loadNewText() ) {
- $t = $this->mTitle->getPrefixedText() . ' ' . wfMsgExt( 'missingarticle-diff', array( 'escape' ), $this->mOldid, $this->mNewid );
+ $t = $this->mTitle->getPrefixedText();
+ $d = wfMsgExt( 'missingarticle-diff', array( 'escape' ), $this->mOldid, $this->mNewid );
$wgOut->setPagetitle( wfMsg( 'errorpagetitle' ) );
- $wgOut->addWikiMsg( 'missingarticle', "<nowiki>$t</nowiki>" );
+ $wgOut->addWikiMsg( 'missing-article', "<nowiki>$t</nowiki>", $d );
wfProfileOut( __METHOD__ );
return;
}
global $wgOut;
$diff = $this->getDiff( $otitle, $ntitle );
if ( $diff === false ) {
- $wgOut->addWikiMsg( 'missingarticle', "<nowiki>(fixme, bug)</nowiki>" );
+ $wgOut->addWikiMsg( 'missing-article', "<nowiki>(fixme, bug)</nowiki>", '' );
return false;
} else {
$this->showDiffStyle();
'readonlytext' => 'Die Datenbank ist vorübergehend für Neueinträge und Änderungen gesperrt. Bitte versuche es später noch einmal.
Grund der Sperrung: $1',
-'missingarticle' => 'Der Text für „$1“ wurde nicht in der Datenbank gefunden.
+'missing-article' => 'Der Text für „$1“ $2 wurde nicht in der Datenbank gefunden.
Die Seite ist möglicherweise gelöscht oder verschoben worden.
'readonlytext' => 'Die Datenbank ist vorübergehend für Neueinträge und Änderungen gesperrt. Bitte versuchen Sie es später noch einmal.
Grund der Sperrung: $1',
-'missingarticle' => 'Der Text für „$1“ wurde nicht in der Datenbank gefunden.
+'missing-article' => 'Der Text für „$1“ $2 wurde nicht in der Datenbank gefunden.
Die Seite ist möglicherweise gelöscht oder verschoben worden.
'readonlytext' => 'The database is currently locked to new entries and other modifications, probably for routine database maintenance, after which it will be back to normal.
The administrator who locked it offered this explanation: $1',
-'missingarticle' => 'The database did not find the text of a page that it should have found, named "$1".
+'missing-article' => 'The database did not find the text of a page that it should have found, named "$1" $2.
This is usually caused by following an outdated diff or history link to a page that has been deleted.
'readonly',
'enterlockreason',
'readonlytext',
- 'missingarticle',
+ 'missing-article',
'missingarticle-rev',
'missingarticle-diff',
'readonly_lag',