r18152 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r18151‎ | r18152 | r18153 >
Date:14:13, 3 December 2006
Author:leon
Status:old
Tags:
Comment:
Fixed the error of r18149. Apologies.
Modified paths:
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinTemplate.php
@@ -203,7 +203,7 @@
204204 $tpl->set( 'titleprefixeddbkey', $this->mTitle->getPrefixedDBKey() );
205205 $tpl->set( 'titletext', $this->mTitle->getText() );
206206 $tpl->set( 'articleid', $this->mTitle->getArticleId() );
207 -// $tpl->set( 'currevisionid', $wgArticle->getLatest() );
 207+ $tpl->set( 'currevisionid', isset( $wgArticle ) ? $wgArticle->getLatest() : 0 );
208208
209209 if( $oldid ) {
210210 $tpl->set( 'oldid', $oldid );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r18149* Added js variable wgCurRevisionId to the outputleon11:44, 3 December 2006