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

Confusing documentation of has_config method

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.3.7, 2.4.4, 2.5, 2.6
    • 2.3.8, 2.4.5, 2.5.1
    • Documentation

    Description

      The current documentation of the has_config method in block_base is:

      Subclasses should override this and return true if the
      subclass block has a config_global.html file.

      This is not correct and is confusing. It should read something like:

      Subclasses should override this and return true if the
      subclass block has a settings.php file.

      Attachments

        Activity

          People

            maherne Michael Aherne
            maherne Michael Aherne
            Petr Skoda Petr Skoda
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8/Jul/13