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
* (bug 8141) Cleanup of Parser::doTableStuff, patch by AzaTht
* (bug 8042) Make miser mode caching limits settable via $wgQueryCacheLimit
instead of hardcoding to 1000
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'] ) . '"' ) ) . ';
function getHeadScripts() {
global $wgStylePath, $wgUser, $wgAllowUserJs, $wgJsMimeType, $wgStyleVersion;
global $wgArticlePath, $wgScriptPath, $wgServer, $wgContLang, $wgLang;
- global $wgTitle, $wgCanonicalNamespaceNames, $wgOut, $wgArticle, $wgRequest;
+ global $wgTitle, $wgCanonicalNamespaceNames, $wgOut, $wgArticle;
$ns = $wgTitle->getNamespace();
$nsname = isset( $wgCanonicalNamespaceNames[ $ns ] ) ? $wgCanonicalNamespaceNames[ $ns ] : $wgTitle->getNsText();
'titletext' => $wgTitle->getText(),
'articleid' => $wgTitle->getArticleId(),
'currevisionid' => isset( $wgArticle ) ? $wgArticle->getLatest() : 0,
- 'oldid' => $wgRequest->getVal( 'oldid' ),
'isarticle' => $wgOut->isArticle(),
'username' => $wgUser->isAnon() ? NULL : $wgUser->getName(),
'userlang' => $wgLang->getCode(),
$tpl->set( 'titletext', $this->mTitle->getText() );
$tpl->set( 'articleid', $this->mTitle->getArticleId() );
$tpl->set( 'currevisionid', isset( $wgArticle ) ? $wgArticle->getLatest() : 0 );
- $tpl->set( 'oldid', $oldid ? $oldid : 0 );
$tpl->set( 'isarticle', $wgOut->isArticle() );