Moodle

Question image not shown

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.9.2
  • Fix Version/s: None
  • Component/s: Questions
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

Question image is not shown. Problem is in function get_question_image().

Change the following line:

$img = get_file_url("$courseid/{$question->image}");

by

$img = get_file_url("$coursefilesdir/{$question->image}");

Thanks in advance

Juan.

Issue Links

Activity

Hide
Tim Hunt added a comment -

This is a duplicate of MDL-15792. Please search for existing bug reports before creating a new one. Also, it was a newly introduced regression in 1.9.2, it did not affect 1.9 or 1.9.1

Finally, it has already been fixed. Please upgrade to 1.9.2+

Show
Tim Hunt added a comment - This is a duplicate of MDL-15792. Please search for existing bug reports before creating a new one. Also, it was a newly introduced regression in 1.9.2, it did not affect 1.9 or 1.9.1 Finally, it has already been fixed. Please upgrade to 1.9.2+
Hide
Juan Segarra Montesinos added a comment -

Oops. Sorry i didn't find that report...

Thanks

Show
Juan Segarra Montesinos added a comment - Oops. Sorry i didn't find that report... Thanks

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: