r14442 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14441‎ | r14442 | r14443 >
Date:21:30, 28 May 2006
Author:robchurch
Status:old
Tags:
Comment:
(bug 6099) Introduce {{DIRECTIONMARK}} magic word (with {{DIRMARK}} as an alias)
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/MagicWord.php (modified) (history)
  • /trunk/phase3/includes/Parser.php (modified) (history)
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -2186,6 +2186,8 @@
21872187 return $wgServerName;
21882188 case MAG_SCRIPTPATH:
21892189 return $wgScriptPath;
 2190+ case MAG_DIRECTIONMARK:
 2191+ return $wgContLang->getDirMark();
21902192 default:
21912193 $ret = null;
21922194 if ( wfRunHooks( 'ParserGetVariableValueSwitch', array( &$this, &$varCache, &$index, &$ret ) ) )
Index: trunk/phase3/includes/MagicWord.php
@@ -90,6 +90,7 @@
9191 'MAG_BASEPAGENAMEE',
9292 'MAG_URLENCODE',
9393 'MAG_CURRENTTIMESTAMP',
 94+ 'MAG_DIRECTIONMARK',
9495 );
9596 if ( ! defined( 'MEDIAWIKI_INSTALL' ) )
9697 wfRunHooks( 'MagicWordMagicWords', array( &$magicWords ) );
@@ -142,6 +143,7 @@
143144 MAG_BASEPAGENAMEE,
144145 MAG_URLENCODE,
145146 MAG_CURRENTTIMESTAMP,
 147+ MAG_DIRECTIONMARK,
146148 );
147149 if ( ! defined( 'MEDIAWIKI_INSTALL' ) )
148150 wfRunHooks( 'MagicWordwgVariableIDs', array( &$wgVariableIDs ) );
Index: trunk/phase3/RELEASE-NOTES
@@ -366,6 +366,7 @@
367367 * (bug 1017) fixed thumbnails of animated gifs.
368368 * Add APC as object caching option
369369 * Update to Albanian localization (sq)
 370+* (bug 6099) Introduce {{DIRECTIONMARK}} magic word (with {{DIRMARK}} as an alias)
370371
371372 == Compatibility ==
372373
Index: trunk/phase3/languages/Language.php
@@ -288,6 +288,7 @@
289289 MAG_CURRENTVERSION => array( 1, 'CURRENTVERSION' ),
290290 MAG_URLENCODE => array( 0, 'URLENCODE:' ),
291291 MAG_CURRENTTIMESTAMP => array( 1, 'CURRENTTIMESTAMP' ),
 292+ MAG_DIRECTIONMARK => array( 1, 'DIRECTIONMARK', 'DIRMARK' ),
292293 );
293294
294295 if (!$wgCachedMessageArrays) {

Status & tagging log