From 3824098fbc1e9af52669a57c5d54c69d134f7926 Mon Sep 17 00:00:00 2001 From: Matthias Kollenbroich Date: Mon, 23 Oct 2023 15:26:17 +0200 Subject: [PATCH] Use withmetadata query parameter when necessary only - fixed PHP doc --- classes/local/apibridge.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/local/apibridge.php b/classes/local/apibridge.php index 34484510..98a2e92d 100644 --- a/classes/local/apibridge.php +++ b/classes/local/apibridge.php @@ -298,10 +298,10 @@ public function get_upload_xml_file($filename, $filedata) { * to display a "more videos" link. * * @param int $courseid - * @param bool $withmetada + * @param bool $withmetadata * @return \stdClass */ - public function get_block_videos($courseid, $withmetada = true) { + public function get_block_videos($courseid, $withmetadata = true) { $result = new \stdClass(); $result->count = 0; @@ -322,7 +322,7 @@ public function get_block_videos($courseid, $withmetada = true) { $params = [ 'sign' => true, 'withacl' => true, - 'withmetadata' => $withmetada === true, + 'withmetadata' => $withmetadata === true, 'withpublications' => true, 'sort' => [ 'start_date' => 'DESC' @@ -404,7 +404,7 @@ public function get_course_videos($courseid, $sortcolumns = null) { * * @param string $series * @param string $sortcolumns - * @param bool $withmetada + * @param bool $withmetadata * @return array */ public function get_series_videos($series, $sortcolumns = null, $withmetadata = true) {