Index: trunk/phase3/includes/Parser.php |
— | — | @@ -2186,6 +2186,8 @@ |
2187 | 2187 | return $wgServerName; |
2188 | 2188 | case MAG_SCRIPTPATH: |
2189 | 2189 | return $wgScriptPath; |
| 2190 | + case MAG_DIRECTIONMARK: |
| 2191 | + return $wgContLang->getDirMark(); |
2190 | 2192 | default: |
2191 | 2193 | $ret = null; |
2192 | 2194 | if ( wfRunHooks( 'ParserGetVariableValueSwitch', array( &$this, &$varCache, &$index, &$ret ) ) ) |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -90,6 +90,7 @@ |
91 | 91 | 'MAG_BASEPAGENAMEE', |
92 | 92 | 'MAG_URLENCODE', |
93 | 93 | 'MAG_CURRENTTIMESTAMP', |
| 94 | + 'MAG_DIRECTIONMARK', |
94 | 95 | ); |
95 | 96 | if ( ! defined( 'MEDIAWIKI_INSTALL' ) ) |
96 | 97 | wfRunHooks( 'MagicWordMagicWords', array( &$magicWords ) ); |
— | — | @@ -142,6 +143,7 @@ |
143 | 144 | MAG_BASEPAGENAMEE, |
144 | 145 | MAG_URLENCODE, |
145 | 146 | MAG_CURRENTTIMESTAMP, |
| 147 | + MAG_DIRECTIONMARK, |
146 | 148 | ); |
147 | 149 | if ( ! defined( 'MEDIAWIKI_INSTALL' ) ) |
148 | 150 | wfRunHooks( 'MagicWordwgVariableIDs', array( &$wgVariableIDs ) ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -366,6 +366,7 @@ |
367 | 367 | * (bug 1017) fixed thumbnails of animated gifs. |
368 | 368 | * Add APC as object caching option |
369 | 369 | * Update to Albanian localization (sq) |
| 370 | +* (bug 6099) Introduce {{DIRECTIONMARK}} magic word (with {{DIRMARK}} as an alias) |
370 | 371 | |
371 | 372 | == Compatibility == |
372 | 373 | |
Index: trunk/phase3/languages/Language.php |
— | — | @@ -288,6 +288,7 @@ |
289 | 289 | MAG_CURRENTVERSION => array( 1, 'CURRENTVERSION' ), |
290 | 290 | MAG_URLENCODE => array( 0, 'URLENCODE:' ), |
291 | 291 | MAG_CURRENTTIMESTAMP => array( 1, 'CURRENTTIMESTAMP' ), |
| 292 | + MAG_DIRECTIONMARK => array( 1, 'DIRECTIONMARK', 'DIRMARK' ), |
292 | 293 | ); |
293 | 294 | |
294 | 295 | if (!$wgCachedMessageArrays) { |