Fix formatting in missing-extensions error page

This commit is contained in:
ruan 2022-05-28 18:42:47 +02:00
parent 08c19f253c
commit d3c3ab70f1

View File

@ -14,7 +14,7 @@
<div class="text-warning"> <div class="text-warning">
<?php <?php
$problems = array(); $problems = array();
foreach(array("pdo_mysql", "intl") as $ext) { foreach (array("pdo_mysql", "intl") as $ext) {
if (!extension_loaded($ext)) { if (!extension_loaded($ext)) {
$problems[] = "- <a class=\"text-danger\">$ext</a>"; $problems[] = "- <a class=\"text-danger\">$ext</a>";
} }
@ -24,9 +24,9 @@
echo(implode("<br>", $problems)); echo(implode("<br>", $problems));
$phpini = php_ini_loaded_file(); $phpini = php_ini_loaded_file();
echo "These extensions can be enabled in php.ini.<br><br>"; echo "<br>These extensions can be enabled in php.ini.";
echo "php.ini location: <a class=\"text-info\">" . $phpini . "</a><br>"; echo "<br><br>php.ini location: <a class=\"text-info\">" . $phpini . "</a>";
echo "List of currently loaded extensions:"; echo "<br>List of currently loaded extensions:<br>";
echo(implode(', ', get_loaded_extensions())); echo(implode(', ', get_loaded_extensions()));
} }
?> ?>