//no die if memory_limit is not detected or lower than 16M but display a big warn

This commit is contained in:
vAugagneur
2012-05-16 13:40:36 +00:00
parent f26ae77c7a
commit 3dce026331
2 changed files with 15 additions and 0 deletions
+11
View File
@@ -260,6 +260,17 @@ div.field {
border:1px solid #ccc;
}
.warnBlock {
padding:14px 25px 14px 35px;
margin-bottom: 10px;
font-weight:normal;
font-size:13px;
line-height:18px;
background:#FEEFB3;
border:1px solid #9E6014;
color:#9E6014
}
.okBlock h1,
.okBlock h2,
.okBlock h3,
+4
View File
@@ -1,5 +1,9 @@
<?php $this->displayTemplate('header') ?>
<?php if (true): ?>
<div class="warnBlock"><?php echo $this->l('PrestaShop requires at least 16M of memory to run, please check the memory_limit directive in php.ini or contact your host provider'); ?></div>
<?php endif; ?>
<h2><?php echo $this->l('Welcome to the PrestaShop %s Installer.', _PS_INSTALL_VERSION_) ?></h2>
<p><?php echo $this->l('The installation process should take only few minutes!') ?></p>
<p><?php echo $this->l('If you need help, do not hesitate to check <a href="%1$s" target="_blank">our documentation</a> or to contact our support team: %2$s', $this->getDocumentationLink(), $this->getPhone()) ?></p>