From a6303410cfff8ac65521301e648852fa70872162 Mon Sep 17 00:00:00 2001 From: Andy Heathershaw Date: Sat, 30 Sep 2017 08:14:21 +0100 Subject: [PATCH] #48: Added a check to the Composer install if Composer cannot be used due to allow_url_fopen being disabled --- public/install.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/install.php b/public/install.php index 2d6c405..0e6de00 100644 --- a/public/install.php +++ b/public/install.php @@ -136,6 +136,14 @@ class BlueTwilightInstaller private function fetchComposerSignature() { + if (!boolval(ini_get('allow_url_fopen'))) + { + $this->echoError('allow_url_fopen is disabled so we cannot use Composer'); + echo '
'; + $this->echoError('You will need to install the vendor libraries manually - see this page for more details'); + return false; + } + $signatureUrl = 'https://composer.github.io/installer.sig'; $this->composerSignature = trim(file_get_contents($signatureUrl)); if (strlen($this->composerSignature) == 0)