[-] BO : fixed #PSFV-747 - mod_rewrite not detected

This commit is contained in:
vAugagneur
2012-04-04 08:47:21 +00:00
parent 97abfaf349
commit b83ca428a4
@@ -27,18 +27,17 @@
{extends file="helpers/options/options.tpl"}
{block name="input"}
{if $field['type'] == 'rewriting_settings'}
{if $field['mod_rewrite']}
<label class="t" for="{$key}_on"><img src="../img/admin/enabled.gif" alt="{l s='Yes'}" title="{l s='Yes'}" /></label>
<input type="radio" name="{$key}" id="{$key}_on" value="1" {if $field['value']} checked="checked"{/if}{if isset($field['js']['on'])} {$field['js']['on']}{/if}/>
<label class="t" for="{$key}_on"> {l s='Yes'}</label>
<label class="t" for="{$key}_off"><img src="../img/admin/disabled.gif" alt="{l s='No'}" title="{l s='No'}" style="margin-left: 10px;" /></label>
<input type="radio" name="{$key}" id="{$key}_off" value="0" {if !$field['value']} checked="checked"{/if}{if isset($field['js']['off'])} {$field['js']['off']}{/if}/>
<label class="t" for="{$key}_off"> {l s='No'}</label>
{else}
<span class="warning_mod_rewrite" style="display:block;height:15px">{l s='URL rewriting (mod_rewrite) is not active on your server. If you want to use Friendly URL you must activate this mod.'}</span>
{if !$field['mod_rewrite']}
<span class="warning_mod_rewrite" style="height:15px">{l s='URL rewriting (mod_rewrite) is not active on your server. If you want to use Friendly URL you must activate this mod.'}</span>
<div class="clear"></div>
{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}
{/block}