Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -108,6 +108,7 @@ |
109 | 109 | * (bug 32512) Include 'associated namespace' checkbox on Special:Contributions |
110 | 110 | * Added $wgSend404Code, true by default, which can be set to false to send a |
111 | 111 | 200 status code instead of 404 for nonexistent articles. |
| 112 | +* (bug 23427) Introduced {{PAGEID}} variable to expose page.page_id |
112 | 113 | |
113 | 114 | === Bug fixes in 1.19 === |
114 | 115 | * $wgUploadNavigationUrl should be used for file redlinks if. |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -2817,6 +2817,8 @@ |
2818 | 2818 | break; |
2819 | 2819 | case 'articlepath': |
2820 | 2820 | return $wgArticlePath; |
| 2821 | + case 'pageid': |
| 2822 | + return $this->getTitle()->getArticleId(); |
2821 | 2823 | case 'sitename': |
2822 | 2824 | return $wgSitename; |
2823 | 2825 | case 'server': |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -67,6 +67,7 @@ |
68 | 68 | 'numberoffiles', |
69 | 69 | 'numberofedits', |
70 | 70 | 'articlepath', |
| 71 | + 'pageid', |
71 | 72 | 'sitename', |
72 | 73 | 'server', |
73 | 74 | 'servername', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -287,6 +287,7 @@ |
288 | 288 | 'localurl' => array( 0, 'LOCALURL:' ), |
289 | 289 | 'localurle' => array( 0, 'LOCALURLE:' ), |
290 | 290 | 'articlepath' => array( 0, 'ARTICLEPATH' ), |
| 291 | + 'pageid' => array( 0, 'PAGEID' ), |
291 | 292 | 'server' => array( 0, 'SERVER' ), |
292 | 293 | 'servername' => array( 0, 'SERVERNAME' ), |
293 | 294 | 'scriptpath' => array( 0, 'SCRIPTPATH' ), |