Using __construct for all the language constructors, and few minor fixes.
[lhc/web/wiklou.git] / languages / Language.php
index 52631f5..85a6bce 100644 (file)
@@ -322,7 +322,7 @@ class fakeConverter {
 
 class Language {
        var $mConverter;
-       function Language() {
+       function __construct() {
                $this->mConverter = new fakeConverter($this);
        }
 
@@ -855,7 +855,13 @@ class Language {
         * @return bool
         */
        function isRTL() { return false; }
-       function getDirMark() { return $this->isRTL() ? '‏' : '‎'; }
+
+       /**
+        * A hidden direction mark (LRM or RLM), depending on the language direction
+        *
+        * @return string
+        */
+       function getDirMark() { return $this->isRTL() ? "\xE2\x80\x8F" : "\xE2\x80\x8E"; }
 
        /**
         * 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;