Skip to content

Commit

Permalink
Use withmetadata query parameter when necessary only - fixed PHP doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Kollenbroich committed Oct 23, 2023
1 parent e2d6194 commit 3824098
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/local/apibridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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'
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 3824098

Please sign in to comment.