Skip to content
Snippets Groups Projects
Commit 51130a02 authored by Adrián Granado's avatar Adrián Granado
Browse files

Coherence in recommended settings

parent c4c5ec73
No related branches found
No related tags found
1 merge request!7fixes in installation
......@@ -42,8 +42,27 @@
<table class="config-table">
<tr><th>{vtranslate('LBL_PHP_CONFIGURATION', 'Install')}</th><th>{vtranslate('LBL_REQUIRED_VALUE', 'Install')}</th><th>{vtranslate('LBL_PRESENT_VALUE', 'Install')}</th></tr>
{foreach key=CONFIG_NAME item=INFO from=$SYSTEM_PREINSTALL_PARAMS}
<tr><td>{vtranslate($CONFIG_NAME, 'Install')}</td><td>{if $INFO.1 eq 1} {vtranslate('LBL_TRUE', 'Install')} {else} {$INFO.1} {/if}</td>
<td {if $INFO.2 eq false} class="no" > {vtranslate('LBL_NO', 'Install')} {else if ($INFO.2 eq true and $INFO.1 === true)} > {vtranslate('LBL_YES', 'Install')} {else} > {$INFO.0} {/if}</td></tr>
<tr><td>{vtranslate($CONFIG_NAME, 'Install')}</td>
<td>
{if $INFO.1 eq 1}
{vtranslate('LBL_YES', 'Install')}
{else}
{$INFO.1}
{/if}
</td>
<td
{if $INFO.2 eq false} class="no" >
{if $CONFIG_NAME = 'LBL_PHP_VERSION'}
{$INFO.0}
{else}
{vtranslate('LBL_NO', 'Install')}
{/if}
{else if ($INFO.2 eq true and $INFO.1 === true)} >
{vtranslate('LBL_YES', 'Install')}
{else} >
{$INFO.0}
{/if}
</td></tr>
{/foreach}
</table>
<br>
......
......@@ -126,7 +126,7 @@ class Install_Utils_Model {
function getSystemPreInstallParameters() {
$preInstallConfig = array();
// Name => array( System Value, Recommended value, supported or not(true/false) );
$preInstallConfig['LBL_PHP_VERSION'] = array(phpversion(), '5.5.0', (version_compare(phpversion(), '5.5.0', '<=')));
$preInstallConfig['LBL_PHP_VERSION'] = array(phpversion(), '5.4.0', (version_compare(phpversion(), '5.4.0', '>=')));
$preInstallConfig['LBL_IMAP_SUPPORT'] = array(function_exists('imap_open'), true, (function_exists('imap_open') == true));
$preInstallConfig['LBL_ZLIB_SUPPORT'] = array(function_exists('gzinflate'), true, (function_exists('gzinflate') == true));
if ($preInstallConfig['LBL_PHP_VERSION'] >= '5.5.0') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment