mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
"MDL-24646, fixed portfolio export in chat module"
This commit is contained in:
parent
034699d20a
commit
e80451e835
@ -19,6 +19,7 @@
|
||||
* Library of functions for chat outside of the core api
|
||||
*/
|
||||
|
||||
require_once($CFG->dirroot . '/mod/chat/lib.php');
|
||||
require_once($CFG->libdir . '/portfolio/caller.php');
|
||||
|
||||
/**
|
||||
@ -117,7 +118,7 @@ class chat_portfolio_caller extends portfolio_module_caller_base {
|
||||
$sessiongap = 5 * 60; // 5 minutes silence means a new session
|
||||
foreach ($this->messages as $message) { // We are walking FORWARDS through messages
|
||||
$m = clone $message; // grrrrrr - this causes the sha1 to change as chat_format_message changes what it's passed.
|
||||
$formatmessage = chat_format_message($m, $this->course->id, $this->user);
|
||||
$formatmessage = chat_format_message($m, $this->cm->course, $this->user);
|
||||
if (!isset($formatmessage->html)) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user