From e41b104f67cf5d6605c6e3fef6d8898c4a912991 Mon Sep 17 00:00:00 2001 From: scyrma Date: Thu, 8 May 2008 02:38:47 +0000 Subject: [PATCH] MDL-11113: re-add function to deprecatedlib.php, and use it in old version of the help file. --- lang/en_utf8/help/richtext.html | 2 +- lib/deprecatedlib.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lang/en_utf8/help/richtext.html b/lang/en_utf8/help/richtext.html index 7ac3c64382..c7ef61ed98 100644 --- a/lang/en_utf8/help/richtext.html +++ b/lang/en_utf8/help/richtext.html @@ -5,7 +5,7 @@ print_string("htmleditordisabledadmin"); } else if (!$USER->htmleditor) { print_string("htmleditordisabled"); - } else if (!can_use_html_editor()) { + } else if (!can_use_richtext_editor()) { print_string("htmleditordisabledbrowser"); } else { print_string("htmleditoravailable"); diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 0bce274dae..f8997abc33 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -505,6 +505,17 @@ function get_group_students($groupids, $sort='ul.timeaccess DESC') { return get_users_by_capability($context, 'moodle/legacy:student', 'u.*, ul.timeaccess as lastaccess', $sort, '','',$groupids, '', false); } +/** + * Determines if the HTML editor is enabled. This function has + * been deprecated, but needs to remain available because it is + * used in language packs for Moodle 1.6 to 1.9. + * + * @deprecated Use {@link can_use_html_editor()} instead. + */ +function can_use_richtext_editor() { + return can_use_html_editor(); +} + ########### FROM weblib.php ########################################################################## -- 2.39.5