#48: Added a check to the Composer install if Composer cannot be used due to allow_url_fopen being disabled
This commit is contained in:
parent
c5e22c7a6e
commit
a6303410cf
@ -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 '<br/>';
|
||||
$this->echoError('You will need to install the vendor libraries manually - <a href="https://github.com/pandy06269/blue-twilight/wiki/Install-Vendor-libraries-manually" target="_blank">see this page for more details</a>');
|
||||
return false;
|
||||
}
|
||||
|
||||
$signatureUrl = 'https://composer.github.io/installer.sig';
|
||||
$this->composerSignature = trim(file_get_contents($signatureUrl));
|
||||
if (strlen($this->composerSignature) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user