mirror of
https://github.com/moodle/moodle.git
synced 2025-07-12 01:46:32 +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)
|
* @return mixed string or array of (html text withouth images and image HTML)
|
||||||
*/
|
*/
|
||||||
function forum_print_attachments($post, $cm, $type) {
|
function forum_print_attachments($post, $cm, $type) {
|
||||||
global $CFG, $DB;
|
global $CFG, $DB, $USER;
|
||||||
|
|
||||||
if (empty($post->attachment)) {
|
if (empty($post->attachment)) {
|
||||||
return $type !== 'separateimages' ? '' : array('', '');
|
return $type !== 'separateimages' ? '' : array('', '');
|
||||||
|
Reference in New Issue
Block a user