Fixes bug 4045 by adding dirmarks.
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Wed, 18 Apr 2012 05:56:46 +0000 (08:56 +0300)
committerAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Wed, 18 Apr 2012 15:34:45 +0000 (18:34 +0300)
Adding dirmarks (rlm/lrm) to the pipe separators between parent pages
"breadcrumbs" links so that they would appear in the correct order and
not overlap.

Change-Id: I9c72878c829005996bde7904e8b7d2fcfc9d7d17

includes/Skin.php

index 8b10d7f..f40de4c 100644 (file)
@@ -688,6 +688,7 @@ abstract class Skin extends ContextSource {
         * @return string
         */
        function subPageSubtitle() {
+               global $wgLang;
                $out = $this->getOutput();
                $subpages = '';
 
@@ -718,7 +719,7 @@ abstract class Skin extends ContextSource {
                                                $c++;
 
                                                if ( $c > 1 ) {
-                                                       $subpages .= $this->msg( 'pipe-separator' )->escaped();
+                                                       $subpages .= $wgLang->getDirMarkEntity() . $this->msg( 'pipe-separator' )->escaped();
                                                } else  {
                                                        $subpages .= '&lt; ';
                                                }