From a46685be0e18f7e6115b8d74b5252134f8df0366 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Tue, 20 Jun 2006 08:11:56 +0000 Subject: [PATCH] Documenting Language::getDirMark, and replacing the HTML entities (which are unsuitable when used in non-HTML places) to the real direction marks. --- languages/Language.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/languages/Language.php b/languages/Language.php index 52631f5d2f..8af23ee31a 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -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() ? '‏' : '‎'; } /** * 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; -- 2.20.1