add error to install

This commit is contained in:
Corne Oppelaar 2016-06-25 15:48:42 +02:00
parent 929c6d0812
commit 914287873b
No known key found for this signature in database
GPG key ID: FF32F66315D2E8E5
3 changed files with 13 additions and 1 deletions

0
db.sqlite Normal file
View file

View file

@ -23,13 +23,18 @@ class Show extends Main
$hasOpenSsl = $return === 0;
}
/* @var \Aura\Session\Session $session */
$session = $this->get('session');
$segment = $session->getSegment('main');
$data = [
'hasExecEnabled' => $execEnabled,
'hasOpenSsl' => $hasOpenSsl,
'hasOpenSslExtension' => extension_loaded('openssl'),
'hasZipExtension' => extension_loaded('zip'),
'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);

View file

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