MDL-86822 mod_h5pactivity: fix block page type list method parameters.
Similar was done before in 7a77493b.
This commit is contained in:
@@ -334,11 +334,11 @@ function h5pactivity_reset_gradebook(int $courseid, string $type=''): void {
|
||||
* Return a list of page types
|
||||
*
|
||||
* @param string $pagetype current page type
|
||||
* @param stdClass|null $parentcontext Block's parent context
|
||||
* @param stdClass $currentcontext Current context of block
|
||||
* @param context|null $parentcontext Block's parent context
|
||||
* @param context|null $currentcontext Current context of block
|
||||
* @return array array of page types and it's names
|
||||
*/
|
||||
function h5pactivity_page_type_list(string $pagetype, ?stdClass $parentcontext, stdClass $currentcontext): array {
|
||||
function h5pactivity_page_type_list(string $pagetype, ?context $parentcontext, ?context $currentcontext): array {
|
||||
$modulepagetype = [
|
||||
'mod-h5pactivity-*' => get_string('page-mod-h5pactivity-x', 'h5pactivity'),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user