From ff531a157c242a34d22afe9a992e984ed6a8e024 Mon Sep 17 00:00:00 2001 From: thomasmars Date: Wed, 22 Feb 2017 18:29:21 +0100 Subject: [PATCH] Improved error msg and check for openssl extension HFP-502 --- h5p.classes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 135e8aa..b1898fe 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2780,7 +2780,7 @@ class H5PCore { $php_version = explode('.', phpversion()); if ($php_version[0] < 5 || ($php_version[0] === 5 && $php_version[1] < 2)) { $errors[] = - $this->h5pF->t('Your PHP version is too old. H5P needs at least version 5.2 to function properly'); + $this->h5pF->t('Your PHP version is outdated. H5P requires version 5.2 to function properly. Version 5.6 or later is recommended.'); } $max_upload_size = ini_get('upload_max_filesize'); @@ -2797,7 +2797,7 @@ class H5PCore { } // Check SSL - if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') { + if (!extension_loaded('openssl')) { $errors[] = $this->h5pF->t('Your server does not have SSL enabled. SSL should be enabled to ensure a secure connection with the H5P hub.'); }