Fixed the error of r18149. Apologies.
authorLeon Weber <leon@users.mediawiki.org>
Sun, 3 Dec 2006 14:13:59 +0000 (14:13 +0000)
committerLeon Weber <leon@users.mediawiki.org>
Sun, 3 Dec 2006 14:13:59 +0000 (14:13 +0000)
includes/SkinTemplate.php

index aa45ceb..117872d 100644 (file)
@@ -203,7 +203,7 @@ class SkinTemplate extends Skin {
                $tpl->set( 'titleprefixeddbkey', $this->mTitle->getPrefixedDBKey() );
                $tpl->set( 'titletext', $this->mTitle->getText() );
                $tpl->set( 'articleid', $this->mTitle->getArticleId() );
-//             $tpl->set( 'currevisionid', $wgArticle->getLatest() );
+               $tpl->set( 'currevisionid', isset( $wgArticle ) ? $wgArticle->getLatest() : 0 );
 
                if( $oldid ) {
                        $tpl->set( 'oldid', $oldid );