Bidi-isolate revisions count in Special:Import
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Sat, 23 Apr 2016 06:32:12 +0000 (06:32 +0000)
committerAmire80 <amir.aharoni@mail.huji.ac.il>
Fri, 30 Sep 2016 11:29:21 +0000 (11:29 +0000)
Change-Id: I3aacc10dd76aba9f4315db284a4bafe629219bc1

includes/specials/SpecialImport.php

index fe1dd98..c58af60 100644 (file)
@@ -594,9 +594,13 @@ class ImportReporter extends ContextSource {
                $this->mPageCount++;
 
                if ( $successCount > 0 ) {
+                       // <bdi> prevents jumbling of the versions count
+                       // in RTL wikis in case the page title is LTR
                        $this->getOutput()->addHTML(
                                "<li>" . Linker::linkKnown( $title ) . " " .
+                                       "<bdi>" .
                                        $this->msg( 'import-revision-count' )->numParams( $successCount )->escaped() .
+                                       "</bdi>" .
                                        "</li>\n"
                        );