From e6ee56a0e4839fc25f672109a74674290ae7b983 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Mon, 14 Dec 2015 12:43:03 +0800 Subject: [PATCH] MDL-52451 forms: replace deprecated function --- lib/formslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/formslib.php b/lib/formslib.php index e65979c7696..7f6ee656c8d 100644 --- a/lib/formslib.php +++ b/lib/formslib.php @@ -1239,7 +1239,7 @@ abstract class moodleform { 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'); }