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

\course\mod.php still uses deprecated "mod.html" instead of "mod_form.php"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 1.9.10
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      While trying to develop a new module I came across the following error message:

      "This module cannot be added to this course yet! (No file found at: ../mod/myglossary/mod.html)."

      I traced that message to "\course\mod.php",line 711ff. which still uses the deprecated "mod.html" instead of the new "mod_form.php":

      $modform = "../mod/$module->name/mod.html";

      "course\moodleform_mod.php",line 10 says:

      • add / update forms (mod/ {modname}.mod_form.php replaces deprecated mod/{modname}

        /mod.html

        Attachments

          Activity

            People

            • Assignee:
              skodak Petr Skoda
              Reporter:
              nakohdo Frank Ralf
              Tester:
              Nobody
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: