From 8fbf8f8a9cd8ab81c46f92c7217730c19eb90ab9 Mon Sep 17 00:00:00 2001 From: scyrma Date: Wed, 7 May 2008 08:33:09 +0000 Subject: [PATCH] MDL-11113: prepare for support for more browsers --- lib/moodlelib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index c40e4d2397..39267996a0 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6151,7 +6151,7 @@ function ini_get_bool($ini_get_arg) { * used. The current requirements are based on Tinymce's, which are available * on http://wiki.moxiecode.com/index.php/TinyMCE:Compatiblity * - * @return bool true if html editor can be used, false otherwise + * @return mixed false if editor cannot be used, or a string representing the compatible browser */ function can_use_html_editor() { global $USER, $CFG; @@ -6161,6 +6161,10 @@ function can_use_html_editor() { return 'MSIE'; } else if (check_browser_version('Gecko', 20030516)) { return 'Gecko'; + } else if (check_browser_version('Safari', 3)) { + return 'Safari'; + } else if (check_browser_version('Opera', 9)) { + return 'Opera'; } } return false; -- 2.39.5