//oups
This commit is contained in:
@@ -70,7 +70,4 @@ if (!@ini_get('date.timezone'))
|
|||||||
|
|
||||||
// Try to improve memory limit if it's under 32M
|
// Try to improve memory limit if it's under 32M
|
||||||
if (Tools::getMemoryLimit() < Tools::getOctets('32M'))
|
if (Tools::getMemoryLimit() < Tools::getOctets('32M'))
|
||||||
ini_set('memory_limit', '32M');
|
ini_set('memory_limit', '32M');
|
||||||
|
|
||||||
if (Tools::getMemoryLimit() < Tools::getOctets('16M'))
|
|
||||||
die('PrestaShop requires at least 16M of memory to run, please check the memory_limit directive in php.ini or contact your host provider');
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php $this->displayTemplate('header') ?>
|
<?php $this->displayTemplate('header') ?>
|
||||||
|
|
||||||
<?php if (true): ?>
|
<?php if (Tools::getMemoryLimit() < Tools::getOctets('16M')): ?>
|
||||||
<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>
|
<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; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user