Permalink
Browse files

MDL-50295 output: prevent 'emoji' arrows

We need to append U+FE0E VARIATION SELECTOR-15 to the arrow to ensure
our l/rarrows are displayed as text icons, not 'emoji' icons.

See http://unicode.org/reports/tr51/#Diversity for more details of why
this changed in iOS 8.3+.
  • Loading branch information...
danpoltawski committed Jul 7, 2015
1 parent 1f2979d commit 220fbca1aa864508b86e4fb038d6612d65c9d753
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/outputlib.php
View
@@ -555,8 +555,8 @@ private function check_theme_arrows() {
|| false !== strpos($uagent, 'Mac')) {
// Looks good in Win XP/Mac/Opera 8/9, Mac/Firefox 2, Camino, Safari.
// Not broken in Mac/IE 5, Mac/Netscape 7 (?).
$this->rarrow = '▶';
$this->larrow = '◀';
$this->rarrow = '▶︎';
$this->larrow = '◀︎';
}
elseif ((false !== strpos($uagent, 'Konqueror'))
|| (false !== strpos($uagent, 'Android'))) {

0 comments on commit 220fbca

Please sign in to comment.