From 702dd9a7b9e625ca7e050ee2d23761b6260e8950 Mon Sep 17 00:00:00 2001 From: Wruczek Date: Thu, 29 Mar 2018 17:16:50 +0200 Subject: [PATCH] Small update to modulecheck --- include/modulecheck.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/modulecheck.php b/include/modulecheck.php index afd7937..e2c4e30 100644 --- a/include/modulecheck.php +++ b/include/modulecheck.php @@ -56,10 +56,11 @@ if (!file_exists(__DIR__ . "/../config/config.php")) { function showExtensionMissingError($extension_name) { $title = 'Required extension "' . $extension_name . '" is missing'; - $text = '

Required PHP extension ' . $extension_name . ' is missing or is not loaded.

-

Install it and restart your server. Usually running sudo apt-get install php-' . $extension_name . ' should be enough.
-

If you still get this error, try restarting your web server and php-fpm service or just reboot your machine

-

If you are using Web Hosting service, please contact their support for instructions on enabling ' . $extension_name . ' extension

'; + $text = + '

Required PHP extension ' . $extension_name . ' is missing or is not loaded.

' . + '

Install it and restart your server. Usually running sudo apt-get install php-' . $extension_name . ' should be enough.

' . + '

If you still get this error, try restarting your web server and php-fpm service or just reboot your machine

' . + '

If you are using Web Hosting service, please contact their support for instructions on enabling ' . $extension_name . ' extension

'; showError($title, $text); } @@ -75,7 +76,7 @@ function showError($title, $text) { ?> - <?php echo $title; ?> + <?php echo $title ?> @@ -98,10 +99,10 @@ function showError($title, $text) { ?>
-

Error

+

Error

- +