Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -203,7 +203,7 @@ |
204 | 204 | $tpl->set( 'titleprefixeddbkey', $this->mTitle->getPrefixedDBKey() ); |
205 | 205 | $tpl->set( 'titletext', $this->mTitle->getText() ); |
206 | 206 | $tpl->set( 'articleid', $this->mTitle->getArticleId() ); |
207 | | -// $tpl->set( 'currevisionid', $wgArticle->getLatest() ); |
| 207 | + $tpl->set( 'currevisionid', isset( $wgArticle ) ? $wgArticle->getLatest() : 0 ); |
208 | 208 | |
209 | 209 | if( $oldid ) { |
210 | 210 | $tpl->set( 'oldid', $oldid ); |