diff --git a/theme/bootstrapbase/config.php b/theme/bootstrapbase/config.php index 8ddf89567a6..668fb562599 100644 --- a/theme/bootstrapbase/config.php +++ b/theme/bootstrapbase/config.php @@ -129,12 +129,11 @@ $THEME->layouts = array( 'regions' => array() ), // Used during upgrade and install, and for the 'This site is undergoing maintenance' message. - // This must not have any blocks, and it is good idea if it does not have links to - // other places - for example there should not be a home link in the footer... + // This must not have any blocks, links, or API calls that would lead to database or cache interaction. + // Please be extremely careful if you are modifying this layout. 'maintenance' => array( - 'file' => 'columns1.php', + 'file' => 'maintenance.php', 'regions' => array(), - 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocoursefooter'=>true, 'nocourseheader'=>true), ), // Should display the content and basic headers only. 'print' => array( diff --git a/theme/bootstrapbase/layout/maintenance.php b/theme/bootstrapbase/layout/maintenance.php new file mode 100644 index 00000000000..5b0b9f7ea1b --- /dev/null +++ b/theme/bootstrapbase/layout/maintenance.php @@ -0,0 +1,62 @@ +. + +/** + * This layout file is designed maintenance related tasks such as upgrade and installation of plugins. + * + * It's ultra important that this layout file makes no use of API's unless it absolutely needs to. + * Under no circumstances should it use API calls that result in database or cache interaction. + * + * If you are modifying this file please be extremely careful, one wrong API call and you could end up + * breaking installation or upgrade unwittingly. + */ + +echo $OUTPUT->doctype() ?> +htmlattributes(); ?>> +
+