add error to install
This commit is contained in:
parent
929c6d0812
commit
914287873b
3 changed files with 13 additions and 1 deletions
0
db.sqlite
Normal file
0
db.sqlite
Normal 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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue