Web browser: ---
            Bug ID: 60799
           Summary: remove $wgContLang and armourMath
           Product: MediaWiki
           Version: 1.23-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Internationalization
            Blocks: 14202
    Classification: Unclassified
   Mobile Platform: ---
             Flags: Backport_to_Stable-

armourMath does:
* Armour rendered math against conversion.
* Escape special chars in parsed math text. (in most cases are img elements)
* @param $text String: text to armour against conversion
* @return String: armoured text where { and } have been converted to
* { and }
public static function armourMath( $text ) {
// convert '-{' and '}-' to '-{' and '}-' to prevent
// any unwanted markup appearing in the math image tag.
$text = strtr( $text, array( '-{' => '-{', '}-' => '}-' ) );
return $text;
I have to proposals:
A) (the far reaching proposal):
Replace amourMath by using the marker type nowiki
If there are arguments not to remove amourMath the alternative is
B) (remove $wgContLang):

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to