@@ -118,7 +118,7 @@ public function post_processing_bulk_operation() {
118118 ['instanceid ' => $ step ->id ,
119119 'touser ' => $ user ->id , ]);
120120
121- $ parsedsettings = $ this ->replace_placeholders ($ settings , $ user , $ step -> id , $ mailentries );
121+ $ parsedsettings = $ this ->replace_placeholders ($ settings , $ user , $ mailentries );
122122 $ subject = $ parsedsettings ['subject ' ];
123123 $ content = $ parsedsettings ['content ' ];
124124 $ contenthtml = $ parsedsettings ['contenthtml ' ];
@@ -148,14 +148,13 @@ public function post_processing_bulk_operation() {
148148 /**
149149 * Replaces certain placeholders within the mail template.
150150 * @param string[] $strings array of mail templates.
151- * @param core_user $user User object.
152- * @param int $stepid Id of the step instance.
151+ * @param \stdClass $user User object.
153152 * @param array[] $mailentries Array consisting of course entries from the database.
154153 * @return string[] array of mail text.
155154 * @throws \dml_exception
156155 * @throws \moodle_exception
157156 */
158- public function replace_placeholders ($ strings , $ user , $ stepid , $ mailentries ) {
157+ public function replace_placeholders ($ strings , $ user , $ mailentries ) {
159158 global $ CFG ;
160159
161160 $ patterns = [];
0 commit comments