MDL-64786 analytics: Add missing parameter to model::export() method

All methods that export an object to be rendered via a template, must
have the instance of a renderer available.
This commit is contained in:
David Mudrák
2019-04-15 08:17:45 +02:00
parent bef0fe2000
commit ed47112e1b
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1438,9 +1438,10 @@ class model {
/**
* Exports the model data for displaying it in a template.
*
* @param \renderer_base $output The renderer to use for exporting
* @return \stdClass
*/
public function export() {
public function export(\renderer_base $output) {
\core_analytics\manager::check_can_manage_models();