// Fix weird bug with some hosting
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17606 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<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>
|
||||
{if !$field['mod_rewrite']}
|
||||
<span class="warning_mod_rewrite">{l s='URL rewriting (mod_rewrite) is not active on your server. If you want to use Friendly URLs you must activate this mod.'}</span>
|
||||
<span class="warning_mod_rewrite">{l s='URL rewriting (mod_rewrite) is not active on your server or it is not possible to check your server configuration. If you want to use Friendly URLs you must activate this mod.'}</span>
|
||||
<div class="clear"></div>
|
||||
{/if}
|
||||
{else}
|
||||
|
||||
@@ -2104,22 +2104,6 @@ FileETag INode MTime Size
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (function_exists('phpinfo'))
|
||||
{
|
||||
// If apache_get_modules does not exists,
|
||||
// we parse phpinfo(INFO_MODULES) return string
|
||||
ob_start();
|
||||
phpinfo(INFO_MODULES);
|
||||
$phpinfo = ob_get_contents();
|
||||
ob_end_clean();
|
||||
if (strpos($phpinfo, $name) !== false)
|
||||
return true;
|
||||
}
|
||||
// otherwise, use the default behavior
|
||||
// see return value at the end of the function
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user