mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #22 - Added debug parameter to preview rendered page.
This commit is contained in:
@@ -53,3 +53,12 @@ if (isset($_GET['file'])) {
|
||||
readfile($file);
|
||||
return;
|
||||
}
|
||||
|
||||
if (isset($_GET['debug'])) {
|
||||
// Use auth/outage/maintenance.php?debug to preview how it will render without triggering maintenance mode.
|
||||
require_once(__DIR__.'/../../config.php');
|
||||
$outage = outagedb::get_next_starting();
|
||||
maintenance_static_page::create_from_outage($outage);
|
||||
readfile(maintenance_static_page::get_template_file());
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user