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

Path issue in add_teacher() in moodlelib.php

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      All
    • Database:
      Any
    • Affected Branches:
      MOODLE_15_STABLE

      Description

      In the add_teacher function in moodlelib.php on line 2676 has:

      /// Add forum subscriptions for new users

      require_once( '../mod/forum/lib.php');

      but should be :

      /// Add forum subscriptions for new users

      require_once( $CFG->dirroot . '/mod/forum/lib.php');

        Gliffy Diagrams

          Activity

          Hide
          dougiamas Martin Dougiamas added a comment -

          From Shane Elliott (shane at pukunui.com) Friday, 15 July 2005, 08:04 AM:

          Fixed in CVS.

          Thanks.

          Show
          dougiamas Martin Dougiamas added a comment - From Shane Elliott (shane at pukunui.com) Friday, 15 July 2005, 08:04 AM: Fixed in CVS. Thanks.
          Hide
          mblake Michael Blake added a comment -

          assign to a valid user

          Show
          mblake Michael Blake added a comment - assign to a valid user

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: