* 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)) {
} else {
ob_start();
- phpinfo(8);
+ phpinfo(INFO_MODULES);
$phpinfo = ob_get_contents();
ob_end_clean();