redirect from Special:Contributions/newbies for backwards compatibility
* (bug 7671) Observe canonical media namespace prefix in Linker::formatComment
* Added js variable wgCurRevisionId to the output
+* Added js variable wgOldId which shows the oldid when viewing an old revision
== Languages updated ==
var wgTitle = "' . Xml::escapeJsString( $data['titletext'] ) . '";
var wgArticleId = ' . (int)$data['articleid'] . ';
var wgCurRevisionId = ' . ( int ) $data['currevisionid'] . ';
+ var wgOldid = ' . ( int ) $data['oldid'] . ';
var wgIsArticle = ' . ( $data['isarticle'] ? 'true' : 'false' ) . ';
var wgUserName = ' . ( $data['username'] == NULL ? 'null' : ( '"' . Xml::escapeJsString( $data['username'] ) . '"' ) ) . ';
$tpl->set( 'titletext', $this->mTitle->getText() );
$tpl->set( 'articleid', $this->mTitle->getArticleId() );
$tpl->set( 'currevisionid', $wgArticle->getLatest() );
+
+ if( $oldid ) {
+ $tpl->set( 'oldid', $oldid );
+ } else
+ {
+ $tpl->set( 'oldid', 0 );
+ }
+
$tpl->set( 'isarticle', $wgOut->isArticle() );
$tpl->setRef( "thispage", $this->thispage );