Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 e5eefbb commit 6448977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/outputlib.php
Expand Up @@ -567,8 +567,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'))) {
Expand Down

0 comments on commit 6448977

Please sign in to comment.