diff --git a/error/missing-extensions.php b/error/missing-extensions.php index ecc0b3b..68ceffc 100644 --- a/error/missing-extensions.php +++ b/error/missing-extensions.php @@ -12,18 +12,23 @@

Missing Extensions


- The following PHP extensions are required by litebans-php but were not found: -
$ext
"; + $problems[] = "- $ext"; } } - $phpini = php_ini_loaded_file(); + if (count($problems) > 0) { + echo("The following PHP extensions are required by litebans-php but were not found:
"); + echo(implode("
", $problems)); + $phpini = php_ini_loaded_file(); - echo "These extensions can be enabled in php.ini.

"; - echo "php.ini location: " . $phpini . "
"; + echo "These extensions can be enabled in php.ini.

"; + echo "php.ini location: " . $phpini . "
"; + echo "List of currently loaded extensions:"; + echo(implode(', ', get_loaded_extensions())); + } ?>