MDL-52451 forms: replace deprecated function
authorMarina Glancy <marina@moodle.com>
Mon, 14 Dec 2015 04:43:03 +0000 (12:43 +0800)
committerMarina Glancy <marina@moodle.com>
Mon, 14 Dec 2015 04:43:03 +0000 (12:43 +0800)
lib/formslib.php

index e65979c..7f6ee65 100644 (file)
@@ -1239,7 +1239,7 @@ abstract class moodleform {
             if (is_array($strings)) {
                 foreach ($strings as $string) {
                     if (is_array($string)) {
             if (is_array($strings)) {
                 foreach ($strings as $string) {
                     if (is_array($string)) {
-                        call_user_method_array('string_for_js', $PAGE->requires, $string);
+                        call_user_func_array(array($PAGE->requires, 'string_for_js'), $string);
                     } else {
                         $PAGE->requires->string_for_js($string, 'moodle');
                     }
                     } else {
                         $PAGE->requires->string_for_js($string, 'moodle');
                     }