Permalink
Browse files

MDL-38347 - Calendar - Fixing arrow output on Android devices

  • Loading branch information...
jsnfwlr committed May 28, 2013
1 parent 7621b70 commit ce7e354ae53b5d5c496406fff706e8dc649e253d
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/outputlib.php
View
@@ -483,7 +483,10 @@ private function check_theme_arrows() {
$this->rarrow = '▶';
$this->larrow = '◀';
}
- elseif (false !== strpos($uagent, 'Konqueror')) {
+ elseif ((false !== strpos($uagent, 'Konqueror'))
+ || (false !== strpos($uagent, 'Android'))) {
+ // The fonts on Android don't include the characters required for this to work as expected.
+ // So we use the same ones Konqueror uses.
$this->rarrow = '→';
$this->larrow = '←';
}

0 comments on commit ce7e354

Please sign in to comment.