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

Allow to customize CLI maintenance message

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Put instance in CLI maintenance mode using admin/cli/maintenance.php --enable
      • Backup dataroot/climaintenance.html
      • Apply patch, restart
      • Acknowledge that HTML content is functionally equivalent.
      Show
      Put instance in CLI maintenance mode using admin/cli/maintenance.php --enable Backup dataroot/climaintenance.html Apply patch, restart Acknowledge that HTML content is functionally equivalent.
    • Affected Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-57882

      Description

      The CLI maintenance page that is generated when using the admin/cli/maintenance.php script is quite old-fashioned, and cannot be customized without patching lib/setuplib.php's early_error_content(…) and/or plain_page(…).

      I'm hereby proposing a fix for that through addressing only the "CLI maintenance" problem, by putting in place the minimum needed for a template rendering.

        Attachments

          Activity

            People

            Assignee:
            odyx Didier Raboud
            Reporter:
            odyx Didier Raboud
            Participants:
            Component watchers:
            Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: