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

use normalize_component to extract plugin name and type

    XMLWordPrintable

Details

    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • wip-mdl-42924
    • Hide

      Not sure if this needs testing.

      Test

      1. To test create a copy of portfolio/mahara and refractor it to my_course
      2. Install and check mnet services are published for my_course and you don't see any error.
      Show
      Not sure if this needs testing. Test To test create a copy of portfolio/mahara and refractor it to my_course Install and check mnet services are published for my_course and you don't see any error.
    • 5
    • BACKEND Sprint 7

    Description

      file: moodle \ lib \ upgradelib.php
      function: function upgrade_plugin_mnet_functions ($ component)
      line: list ($ type, $ plugin) = explode ('_', $ component);

      If a plugin or block, etc. have a two-membered name eg "block_my_courses"
      the variable $plugin substituted is set to 'my' and should be 'my_courses'

      Should look like: list ($ type, $ plugin) = normalize_component ($ component);

      Attachments

        Activity

          People

            rajeshtaneja Rajesh Taneja
            intersiec Andrzej Szandala
            Damyon Wiese Damyon Wiese
            Petr Skoda Petr Skoda
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              13/Jan/14