Skip to content

Commit

Permalink
Add zero-width non-joiner to fix Arabic ligature issue affecting Fire…
Browse files Browse the repository at this point in the history
…fox users

Bug: 60916
Change-Id: I49f3458e7c7f9f687750285c12993f82fae2d6a1
  • Loading branch information
henrycatalinismith authored and awjrichards-zz committed Feb 12, 2014
1 parent e789db9 commit 60a1b16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/skins/SkinMinerva.php
Original file line number Diff line number Diff line change
Expand Up @@ -782,10 +782,11 @@ protected function prepareMobileFooterLinks( $tpl ) {
$desktop = wfMessage( 'mobile-frontend-view-desktop' )->escaped();
$mobile = wfMessage( 'mobile-frontend-view-mobile' )->escaped();

// ‌ is needed for correct ligatures in some scripts (e.g. Arabic)
$switcherHtml = <<<HTML
<h2>{$this->getSitename()}</h2>
<ul>
<li>{$mobile}</li><li><a id="mw-mf-display-toggle" href="{$url}">{$desktop}</a></li>
<li>{$mobile}&zwnj;</li><li><a id="mw-mf-display-toggle" href="{$url}">{$desktop}</a></li>
</ul>
HTML;

Expand Down

0 comments on commit 60a1b16

Please sign in to comment.