diff --git a/blocks/recentlyaccesseditems/classes/external/recentlyaccesseditems_item_exporter.php b/blocks/recentlyaccesseditems/classes/external/recentlyaccesseditems_item_exporter.php index 549a2ec9d50..e9323f018e6 100644 --- a/blocks/recentlyaccesseditems/classes/external/recentlyaccesseditems_item_exporter.php +++ b/blocks/recentlyaccesseditems/classes/external/recentlyaccesseditems_item_exporter.php @@ -86,7 +86,7 @@ class recentlyaccesseditems_item_exporter extends \core\external\exporter { 'type' => PARAM_INT, ), 'modname' => array( - 'type' => PARAM_TEXT, + 'type' => PARAM_PLUGIN, ), 'name' => array( 'type' => PARAM_TEXT, @@ -108,7 +108,7 @@ class recentlyaccesseditems_item_exporter extends \core\external\exporter { public static function define_other_properties() { return array( 'viewurl' => array( - 'type' => PARAM_TEXT, + 'type' => PARAM_RAW, ), 'courseviewurl' => array( 'type' => PARAM_URL, @@ -117,7 +117,7 @@ class recentlyaccesseditems_item_exporter extends \core\external\exporter { 'type' => PARAM_RAW, ), 'purpose' => array( - 'type' => PARAM_TEXT, + 'type' => PARAM_ALPHA, ) ); }