Prevent wrapping by using   instead of spaces in labels on drop down menus....
authorTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 16 Jul 2009 22:55:27 +0000 (22:55 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 16 Jul 2009 22:55:27 +0000 (22:55 +0000)
skins/Vector.php

index 1094a26..c49d95c 100644 (file)
@@ -718,7 +718,7 @@ class VectorTemplate extends QuickTemplate {
        <div class="menu">
                <ul <?php $this->html('userlangattributes') ?>>
                        <?php foreach ($this->data['variant_urls'] as $key => $link ): ?>
-                               <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></li>
+                               <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo str_replace( ' ', '&nbsp;', htmlspecialchars( $link['text'] ) ) ?></a></li>
                        <?php endforeach; ?>
                </ul>
        </div>
@@ -748,7 +748,7 @@ class VectorTemplate extends QuickTemplate {
        <div class="menu">
                <ul <?php $this->html('userlangattributes') ?>>
                        <?php foreach ($this->data['action_urls'] as $key => $link ): ?>
-                               <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></li>
+                               <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo str_replace( ' ', '&nbsp;', htmlspecialchars( $link['text'] ) ) ?></a></li>
                        <?php endforeach; ?>
                </ul>
        </div>