From ecde257b56707ff7e2fb15401b4afbc982583346 Mon Sep 17 00:00:00 2001 From: scyrma Date: Tue, 25 Mar 2008 09:36:01 +0000 Subject: [PATCH] small code cleanup (merge) --- lib/moodlelib.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 798e9b5bef..b41746db2c 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6137,20 +6137,20 @@ function ini_get_bool($ini_get_arg) { * Determines if the HTML editor is enabled. * @deprecated Use {@link can_use_html_editor()} instead. */ - function can_use_richtext_editor() { +function can_use_richtext_editor() { return can_use_html_editor(); } /** * Determines if the HTML editor is enabled. * - * This depends on site and user - * settings, as well as the current browser being used. + * This depends on site and user settings, as well as the current browser being + * used. The current requirements are based on Tinymce's, which are available + * on http://wiki.moxiecode.com/index.php/TinyMCE:Compatiblity * - * @return string|false Returns false if editor is not being used, otherwise - * returns 'MSIE' or 'Gecko'. + * @return bool true if html editor can be used, false otherwise */ - function can_use_html_editor() { +function can_use_html_editor() { global $USER, $CFG; if (!empty($USER->htmleditor) and !empty($CFG->htmleditor)) { @@ -6181,7 +6181,7 @@ function check_gd_version() { } else { ob_start(); - phpinfo(8); + phpinfo(INFO_MODULES); $phpinfo = ob_get_contents(); ob_end_clean(); -- 2.39.5