diff --git a/public/install.php b/public/install.php index 60a15e8c8d4..9554e80fd9a 100644 --- a/public/install.php +++ b/public/install.php @@ -557,6 +557,7 @@ if ($config->stage == INSTALL_PATHS) { 'dirroot' => get_string('dirroot', 'install'), 'dataroot' => get_string('dataroot', 'install')); + $stageclass = "alert-info"; $sub = '
Moodle requires session support and will n
Sessions can be enabled in the php.ini file ... look for the session.auto_start parameter.
'; $string['upgradingqtypeplugin'] = 'Upgrading question/type plugin'; +$string['webserverconfigproblemdescription'] = 'Your web server is not configured to prevent access to files outside the /public directory. Please refer to https://moodledev.io/docs/5.1/guides/restructure for details on how to configure your web server. Once reconfigured, please revisit the web root.'; +$string['webservernotconfigured'] = 'Web server not configured'; $string['welcomep10'] = '{$a->installername} ({$a->installerversion})'; $string['welcomep20'] = 'You are seeing this page because you have successfully installed and launched the {$a->packname} {$a->packversion} package in your computer. Congratulations!'; diff --git a/public/lib/installlib.php b/public/lib/installlib.php index 745fa1a130f..69e1ad26809 100644 --- a/public/lib/installlib.php +++ b/public/lib/installlib.php @@ -268,9 +268,17 @@ function install_generate_configphp($database, $cfg) { * @param string $heading * @param string $stagetext * @param string $stageclass + * @param string $warning Additional information that is a warning * @return void */ -function install_print_header($config, $stagename, $heading, $stagetext, $stageclass = "alert-info") { +function install_print_header( + $config, + $stagename, + $heading, + $stagetext, + $stageclass = "alert-info", + $warning = '', +) { global $CFG; @header('Content-Type: text/html; charset=UTF-8'); @@ -312,6 +320,11 @@ function install_print_header($config, $stagename, $heading, $stagetext, $stagec echo $stagetext; echo ''; } + if ($warning !== '') { + echo '