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

MNet wont work if $CFG->admin is changed.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.4, 3.1
    • 3.0.7, 3.1.3
    • MNet
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • Hide

      Rename your admin directory to something else, like "myadmin"
      Set: $CFG->admin = 'myadmin'; in your config.php file.
      Visit the urls under Site administration > Networking.
      Test adding a mnet peer to your site

      Show
      Rename your admin directory to something else, like "myadmin" Set: $CFG->admin = 'myadmin'; in your config.php file. Visit the urls under Site administration > Networking. Test adding a mnet peer to your site

    Description

      All calls in mnet like this:

      require_once($CFG->dirroot . '/admin/mnet/tabs.php');
      

      Should be like this:

      require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/tabs.php');
      

      Attachments

        Issue Links

          Activity

            People

              aolley Adam Olley
              damyon Damyon Wiese
              David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
              Dan Poltawski Dan Poltawski
              Adrian Greeve Adrian Greeve
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Nov/16