mirror of
https://github.com/moodle/moodle.git
synced 2025-07-11 17:36:30 +02:00
MDL-16542 - missing global $USER
This commit is contained in:
@ -3873,7 +3873,7 @@ function forum_move_attachments($discussion, $forumfrom, $forumto) {
|
||||
* @return mixed string or array of (html text withouth images and image HTML)
|
||||
*/
|
||||
function forum_print_attachments($post, $cm, $type) {
|
||||
global $CFG, $DB;
|
||||
global $CFG, $DB, $USER;
|
||||
|
||||
if (empty($post->attachment)) {
|
||||
return $type !== 'separateimages' ? '' : array('', '');
|
||||
|
Reference in New Issue
Block a user