Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -2497,7 +2497,7 @@ |
2498 | 2498 | */ |
2499 | 2499 | function getVariableValue( $index, $frame=false ) { |
2500 | 2500 | global $wgContLang, $wgSitename, $wgServer, $wgServerName; |
2501 | | - global $wgScriptPath, $wgStylePath; |
| 2501 | + global $wgArticlePath, $wgScriptPath, $wgStylePath; |
2502 | 2502 | |
2503 | 2503 | /** |
2504 | 2504 | * Some of these require message or data lookups and can be |
— | — | @@ -2771,6 +2771,8 @@ |
2772 | 2772 | case 'currentversion': |
2773 | 2773 | $value = SpecialVersion::getVersion(); |
2774 | 2774 | break; |
| 2775 | + case 'articlepath': |
| 2776 | + return $wgArticlePath; |
2775 | 2777 | case 'sitename': |
2776 | 2778 | return $wgSitename; |
2777 | 2779 | case 'server': |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -60,6 +60,7 @@ |
61 | 61 | 'numberofarticles', |
62 | 62 | 'numberoffiles', |
63 | 63 | 'numberofedits', |
| 64 | + 'articlepath', |
64 | 65 | 'sitename', |
65 | 66 | 'server', |
66 | 67 | 'servername', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -295,6 +295,7 @@ |
296 | 296 | 'nse' => array( 0, 'NSE:' ), |
297 | 297 | 'localurl' => array( 0, 'LOCALURL:' ), |
298 | 298 | 'localurle' => array( 0, 'LOCALURLE:' ), |
| 299 | + 'articlepath' => array( 0, 'ARTICLEPATH' ), |
299 | 300 | 'server' => array( 0, 'SERVER' ), |
300 | 301 | 'servername' => array( 0, 'SERVERNAME' ), |
301 | 302 | 'scriptpath' => array( 0, 'SCRIPTPATH' ), |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -132,6 +132,7 @@ |
133 | 133 | ** (bug 1211) Subcategories, ordinary pages, and files now page separately. |
134 | 134 | ** When several pages are given the same sort key, they sort by their names |
135 | 135 | instead of randomly. |
| 136 | +* (bug 23848) Add {{ARTICLEPATH}} Magic Word |
136 | 137 | |
137 | 138 | === Bug fixes in 1.17 === |
138 | 139 | * (bug 17560) Half-broken deletion moved image files to deletion archive |