Documenting Language::getDirMark, and replacing the HTML entities (which are unsuitab...
authorRotem Liss <rotem@users.mediawiki.org>
Tue, 20 Jun 2006 08:11:56 +0000 (08:11 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Tue, 20 Jun 2006 08:11:56 +0000 (08:11 +0000)
languages/Language.php

index 52631f5..8af23ee 100644 (file)
@@ -855,7 +855,13 @@ class Language {
         * @return bool
         */
        function isRTL() { return false; }
-       function getDirMark() { return $this->isRTL() ? '&rlm;' : '&lrm;'; }
+
+       /**
+        * A hidden direction mark (LRM or RLM), depending on the language direction
+        *
+        * @return string
+        */
+       function getDirMark() { return $this->isRTL() ? '‏' : '‎'; }
 
        /**
         * To allow "foo[[bar]]" to extend the link over the whole word "foobar"
@@ -864,7 +870,6 @@ class Language {
         */
        function linkPrefixExtension() { return false; }
 
-
        function &getMagicWords() {
                global $wgMagicWordsEn;
                return $wgMagicWordsEn;