Skip to content

Commit de3fbcd

Browse files
committed
INT-18716: PHP 8.1 Fixes
1 parent 52c2376 commit de3fbcd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

classes/service/post_service.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function handle_user_autosubscription($forum, $post) {
132132
* @param array $options These override default post values, EG: set the post message with this
133133
* @return json_response
134134
*/
135-
public function handle_update_post($course, $cm, $forum, $context, $discussion, $post, array $deletefiles = array(), array $options) {
135+
public function handle_update_post($course, $cm, $forum, $context, $discussion, $post, array $deletefiles = array(), array $options = []) {
136136

137137
$this->require_can_edit_post($forum, $context, $discussion, $post);
138138

lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2157,7 +2157,7 @@ function hsuforum_get_readable_forums($userid, $courseid=0, $excludeanonymous =
21572157
* @return array|bool Array of posts found or false
21582158
*/
21592159
function hsuforum_search_posts($searchterms, $courseid=0, $limitfrom=0, $limitnum=50,
2160-
&$totalcount, $extrasql='') {
2160+
&$totalcount = 0, $extrasql='') {
21612161
global $CFG, $DB, $USER;
21622162
require_once($CFG->libdir.'/searchlib.php');
21632163

renderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ public function post_get_commands($post, $discussion, $cm, $canreply) {
19171917
* @param int $discussion
19181918
* @return string
19191919
*/
1920-
public function render_ax_button(moodle_url $url, $content, $method = 'post', $pinlink, $discussion) {
1920+
public function render_ax_button(moodle_url $url, $content, $method = 'post', $pinlink = 0, $discussion = 0) {
19211921
global $PAGE;
19221922

19231923
$PAGE->requires->js_call_amd('mod_hsuforum/accessibility', 'init', array());

0 commit comments

Comments
 (0)