add error to install

master
Corne Oppelaar 9 years ago
parent 929c6d0812
commit 914287873b
No known key found for this signature in database
GPG Key ID: FF32F66315D2E8E5

@ -23,13 +23,18 @@ class Show extends Main
$hasOpenSsl = $return === 0; $hasOpenSsl = $return === 0;
} }
/* @var \Aura\Session\Session $session */
$session = $this->get('session');
$segment = $session->getSegment('main');
$data = [ $data = [
'hasExecEnabled' => $execEnabled, 'hasExecEnabled' => $execEnabled,
'hasOpenSsl' => $hasOpenSsl, 'hasOpenSsl' => $hasOpenSsl,
'hasOpenSslExtension' => extension_loaded('openssl'), 'hasOpenSslExtension' => extension_loaded('openssl'),
'hasZipExtension' => extension_loaded('zip'), 'hasZipExtension' => extension_loaded('zip'),
'hostname' => parse_url($_SERVER['HTTP_HOST'], PHP_URL_HOST), 'hostname' => parse_url($_SERVER['HTTP_HOST'], PHP_URL_HOST),
'hostnameWithPort' => $_SERVER['HTTP_HOST'] 'hostnameWithPort' => $_SERVER['HTTP_HOST'],
'error' => $segment->getFlash('error')
]; ];
return $this->render('install.html.twig', $data); return $this->render('install.html.twig', $data);

@ -11,6 +11,13 @@
<div class="row"> <div class="row">
<h3>Checking for extensions and settings</h3> <h3>Checking for extensions and settings</h3>
</div> </div>
<div class="row">
{% if error %}
<div class="alert alert-warning" role="alert">
{{ error }}
</div>
{% endif %}
</div>
<div class="row"> <div class="row">
<table class="table"> <table class="table">
<tbody> <tbody>

Loading…
Cancel
Save