mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
"MDL-24646, fixed portfolio export in chat module"
This commit is contained in:
parent
034699d20a
commit
e80451e835
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
||||||
* Library of functions for chat outside of the core api
|
* 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');
|
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
|
$sessiongap = 5 * 60; // 5 minutes silence means a new session
|
||||||
foreach ($this->messages as $message) { // We are walking FORWARDS through messages
|
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.
|
$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)) {
|
if (!isset($formatmessage->html)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue