From 64489778cd7aaea217b0493731b71e935df2bf4f Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 7 Jul 2015 14:13:18 +0100 Subject: [PATCH] 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+. --- lib/outputlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/outputlib.php b/lib/outputlib.php index e9b9b7ec1dd3f..35e2f34a5220e 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -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'))) {