Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -203,8 +203,9 @@ |
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 | 208 | $tpl->set( 'isarticle', $wgOut->isArticle() ); |
208 | | - |
| 209 | + |
209 | 210 | $tpl->setRef( "thispage", $this->thispage ); |
210 | 211 | $subpagestr = $this->subPageSubtitle(); |
211 | 212 | $tpl->set( |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -278,20 +278,21 @@ |
279 | 279 | var wgArticlePath = "' . Xml::escapeJsString( $data['articlepath'] ) . '"; |
280 | 280 | var wgScriptPath = "' . Xml::escapeJsString( $data['scriptpath'] ) . '"; |
281 | 281 | var wgServer = "' . Xml::escapeJsString( $data['serverurl'] ) . '"; |
282 | | - |
| 282 | + |
283 | 283 | var wgCanonicalNamespace = "' . Xml::escapeJsString( $data['nscanonical'] ) . '"; |
284 | 284 | var wgNamespaceNumber = ' . (int)$data['nsnumber'] . '; |
285 | 285 | var wgPageName = "' . Xml::escapeJsString( $data['titleprefixeddbkey'] ) . '"; |
286 | 286 | var wgTitle = "' . Xml::escapeJsString( $data['titletext'] ) . '"; |
287 | 287 | var wgArticleId = ' . (int)$data['articleid'] . '; |
| 288 | + var wgCurRevisionId = ' . ( int ) $data['currevisionid'] . '; |
288 | 289 | var wgIsArticle = ' . ( $data['isarticle'] ? 'true' : 'false' ) . '; |
289 | | - |
| 290 | + |
290 | 291 | var wgUserName = ' . ( $data['username'] == NULL ? 'null' : ( '"' . Xml::escapeJsString( $data['username'] ) . '"' ) ) . '; |
291 | 292 | var wgUserLanguage = "' . Xml::escapeJsString( $data['userlang'] ) . '"; |
292 | 293 | var wgContentLanguage = "' . Xml::escapeJsString( $data['lang'] ) . '"; |
293 | 294 | </script> |
294 | 295 | '; |
295 | | - |
| 296 | + |
296 | 297 | return $r; |
297 | 298 | } |
298 | 299 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -246,6 +246,7 @@ |
247 | 247 | * New special page Special:NewbieContributions, with a (deprecated) |
248 | 248 | redirect from Special:Contributions/newbies for backwards compatibility |
249 | 249 | * (bug 7671) Observe canonical media namespace prefix in Linker::formatComment |
| 250 | +* Added js variable wgCurRevisionId to the output |
250 | 251 | |
251 | 252 | == Languages updated == |
252 | 253 | |