From efa7f1736479bfaa0e022c80d8236fb9a8036af4 Mon Sep 17 00:00:00 2001 From: ruan <2369127-ruany@users.noreply.gitlab.com> Date: Tue, 23 Aug 2022 12:37:03 +0200 Subject: [PATCH] Further clarify error/missing-extensions --- error/missing-extensions.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/error/missing-extensions.php b/error/missing-extensions.php index 2abd950..fda3224 100644 --- a/error/missing-extensions.php +++ b/error/missing-extensions.php @@ -20,15 +20,14 @@ } } 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(); + $problems = implode("
", $problems); + echo "The following PHP extensions are required by litebans-php but were not found:
$problems"; echo "
Please ensure that the correct php-intl and php-mysql packages are installed."; echo "
After installation, these extensions can be enabled in php.ini."; - echo "

php.ini location: " . $phpini . ""; - echo "

List of currently loaded extensions:
"; - echo(implode(', ', get_loaded_extensions())); + echo "

php.ini location: $phpini"; + echo "
Hint: Open php.ini in a text editor, search for ;extension=intl.so and remove the ; character on that line."; } ?>