]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11113: re-add function to deprecatedlib.php, and use it in old version of the...
authorscyrma <scyrma>
Thu, 8 May 2008 02:38:47 +0000 (02:38 +0000)
committerscyrma <scyrma>
Thu, 8 May 2008 02:38:47 +0000 (02:38 +0000)
lang/en_utf8/help/richtext.html
lib/deprecatedlib.php

index 7ac3c643825fc74c6abc3939dd48595380e6c54e..c7ef61ed98c7a9a4a16610f1471512a0a7a239d2 100644 (file)
@@ -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");
index 0bce274dae2bbcec57657994aeb0388e70bf4bce..f8997abc33a3b2bf808ba0b837955a81e096f028 100644 (file)
@@ -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 ##########################################################################