// small fix : display message for max_input_vars

This commit is contained in:
lLefevre
2012-09-04 12:18:14 +00:00
parent 053c36744e
commit 53d8ff166f
5 changed files with 5 additions and 7 deletions
@@ -28,7 +28,7 @@
{block name="override_tpl"}
{if $post_limit_exceeded}
{if !empty($limit_warning)}
<div class="warn">
{if $limit_warning['error_type'] == 'suhosin'}
{l s='Warning, your hosting provider is using the suhosin patch for PHP, which limits the maximum number of fields to post in a form:'}
@@ -28,7 +28,7 @@
{block name="override_tpl"}
{if $post_limit_exceeded}
{if !empty($limit_warning)}
<div class="warn">
{if $limit_warning['error_type'] == 'suhosin'}
{l s='Warning, your hosting provider is using the suhosin patch for PHP, which limits the maximum number of fields to post in a form:'}
@@ -37,7 +37,7 @@
<b>{$limit_warning['request.max_vars']}</b> {l s='for suhosin.request.max_vars.'}<br/>
{l s='Please ask your hosting provider to increase the suhosin post and request a limit of'}
{else}
{l s='Warning, your PHP configuration limits the maximum number of fields to post in a form:'}<br/>
{l s='Warning, your PHP configuration limits the maximum number of fields to post in a form:'}
<b>{$limit_warning['max_input_vars']}</b> {l s='for max_input_vars.'}<br/>
{l s='Please ask your hosting provider to increase the this limit to'}
{/if}
@@ -30,7 +30,7 @@
{$tinyMCE}
{if $post_limit_exceeded}
{if !empty($limit_warning)}
<div class="warn">
{if $limit_warning['error_type'] == 'suhosin'}
{l s='Warning, your hosting provider is using the suhosin patch for PHP, which limits the maximum number of fields to post in a form:'}
@@ -28,7 +28,7 @@
{block name="override_tpl"}
{if $post_limit_exceeded}
{if !empty($limit_warning)}
<div class="warn">
{if $limit_warning['error_type'] == 'suhosin'}
{l s='Warning, your hosting provider is using the suhosin patch for PHP, which limits the maximum number of fields to post in a form:'}
@@ -1404,7 +1404,6 @@ class AdminTranslationsControllerCore extends AdminController
$return = array();
if ((ini_get('suhosin.post.max_vars') && ini_get('suhosin.post.max_vars') < $count) || (ini_get('suhosin.request.max_vars') && ini_get('suhosin.request.max_vars') < $count))
{
$this->post_limit_exceed = true;
$return['error_type'] = 'suhosin';
$return['post.max_vars'] = ini_get('suhosin.post.max_vars');
$return['request.max_vars'] = ini_get('suhosin.request.max_vars');
@@ -1412,7 +1411,6 @@ class AdminTranslationsControllerCore extends AdminController
}
elseif (ini_get('max_input_vars') && ini_get('max_input_vars') < $count)
{
$this->post_limit_exceed = true;
$return['error_type'] = 'conf';
$return['max_input_vars'] = ini_get('max_input_vars');
$return['needed_limit'] = $count + 100;