mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
portfolio MDL-24251 make sure $PAGE context is set up properly
This commit is contained in:
parent
adfc4d7c25
commit
90636e2b41
3 changed files with 20 additions and 9 deletions
|
@ -108,6 +108,9 @@ class portfolio_caller_test extends portfolio_caller_base {
|
|||
public static function base_supported_formats() {
|
||||
return array(PORTFOLIO_FORMAT_RICH, PORTFOLIO_FORMAT_FILE);
|
||||
}
|
||||
public function set_context($PAGE) {
|
||||
$PAGE->set_context(get_system_context());
|
||||
}
|
||||
}
|
||||
|
||||
class portfolio_exporter_test extends portfolio_exporter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue