Fixed RTL errors for SimpleSearch
authorTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 16 Dec 2010 19:02:43 +0000 (19:02 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 16 Dec 2010 19:02:43 +0000 (19:02 +0000)
skins/Vector.php
skins/vector/screen.css

index 77acefe..8b4a92a 100644 (file)
@@ -702,9 +702,13 @@ class VectorTemplate extends BaseTemplate {
                <input type='hidden' name="title" value="<?php $this->text( 'searchtitle' ) ?>"/>
                <?php if ( $wgVectorUseSimpleSearch && $wgUser->getOption( 'vector-simplesearch' ) ): ?>
                <div id="simpleSearch">
+                       <?php if ( $this->data['rtl'] ): ?>
+                       <?php echo $this->makeSearchButton("image", array( "id" => "searchButton", "src" => $this->skin->getSkinStylePath('images/search-rtl.png') )); ?>
+                       <?php endif; ?>
                        <?php echo $this->makeSearchInput(array( "id" => "searchInput", "type" => "text" )); ?>
-                       <?php echo $this->makeSearchButton("image", array( "id" => "searchButton",
-                               "src" => $this->skin->getSkinStylePath('images/search-' . ( $this->data['rtl'] ? 'rtl' : 'ltr' ) . '.png') )); ?>
+                       <?php if ( !$this->data['rtl'] ): ?>
+                       <?php echo $this->makeSearchButton("image", array( "id" => "searchButton", "src" => $this->skin->getSkinStylePath('images/search-ltr.png') )); ?>
+                       <?php endif; ?>
                </div>
                <?php else: ?>
                <?php echo $this->makeSearchInput(array( "id" => "searchInput" )); ?>
index fa8cb89..a28a8c2 100644 (file)
@@ -388,6 +388,7 @@ div#mw-head h5 {
                font-size: 13px;
                width: 14em;
                background-color: transparent;
+               direction: ltr;
        }
        /* OVERRIDDEN BY COMPLIANT BROWSERS */
        div#simpleSearch button#searchButton {