Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-24995

Some question methods... deprecated or outdated...

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Questions
    • None
    • Any
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Difficult

    Description

      Was reviewing the questions infrastructure in 2.0 in order to delete their backup & restore methods... when I've arrived to this method:

      • has_html_answers()

      Looking for uses, I've seen it being used by methods like:

      • find_file_links()
      • question_find_file_links_from_html()
      • question_replace_file_links_in_html()

      That are used by various scripts and classes like:

      question/contextmove.php
      question/contextmoveq.php
      question/category_class.php
      question/type/match/questiontype.php
      question/type/multichoice/questiontype.php
      question/type/questiontype.php

      Problem seems to be that those functions above are looking for stuff under moodledata/courseid (pre 2.0 stuff).

      Just creating this because we shouldn't have code like that in 2.0 anymore and instead all the scripts/classes above should be handling the files using the new API. So I guess that all them are failing right now.

      Ciao

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              stronk7 Eloy Lafuente (stronk7)
              Nobody Nobody
              Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10