portfolio MDL-24251 make sure $PAGE context is set up properly

This commit is contained in:
Penny Leach 2010-09-17 09:39:56 +00:00
parent adfc4d7c25
commit 90636e2b41
3 changed files with 20 additions and 9 deletions

View file

@ -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 {