// small fix : display message for max_input_vars
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
{block name="override_tpl"}
|
{block name="override_tpl"}
|
||||||
|
|
||||||
{if $post_limit_exceeded}
|
{if !empty($limit_warning)}
|
||||||
<div class="warn">
|
<div class="warn">
|
||||||
{if $limit_warning['error_type'] == 'suhosin'}
|
{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:'}
|
{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:'}
|
||||||
|
|||||||
+2
-2
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
{block name="override_tpl"}
|
{block name="override_tpl"}
|
||||||
|
|
||||||
{if $post_limit_exceeded}
|
{if !empty($limit_warning)}
|
||||||
<div class="warn">
|
<div class="warn">
|
||||||
{if $limit_warning['error_type'] == 'suhosin'}
|
{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:'}
|
{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/>
|
<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'}
|
{l s='Please ask your hosting provider to increase the suhosin post and request a limit of'}
|
||||||
{else}
|
{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/>
|
<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'}
|
{l s='Please ask your hosting provider to increase the this limit to'}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
{$tinyMCE}
|
{$tinyMCE}
|
||||||
|
|
||||||
{if $post_limit_exceeded}
|
{if !empty($limit_warning)}
|
||||||
<div class="warn">
|
<div class="warn">
|
||||||
{if $limit_warning['error_type'] == 'suhosin'}
|
{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:'}
|
{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:'}
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
{block name="override_tpl"}
|
{block name="override_tpl"}
|
||||||
|
|
||||||
{if $post_limit_exceeded}
|
{if !empty($limit_warning)}
|
||||||
<div class="warn">
|
<div class="warn">
|
||||||
{if $limit_warning['error_type'] == 'suhosin'}
|
{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:'}
|
{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();
|
$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))
|
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['error_type'] = 'suhosin';
|
||||||
$return['post.max_vars'] = ini_get('suhosin.post.max_vars');
|
$return['post.max_vars'] = ini_get('suhosin.post.max_vars');
|
||||||
$return['request.max_vars'] = ini_get('suhosin.request.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)
|
elseif (ini_get('max_input_vars') && ini_get('max_input_vars') < $count)
|
||||||
{
|
{
|
||||||
$this->post_limit_exceed = true;
|
|
||||||
$return['error_type'] = 'conf';
|
$return['error_type'] = 'conf';
|
||||||
$return['max_input_vars'] = ini_get('max_input_vars');
|
$return['max_input_vars'] = ini_get('max_input_vars');
|
||||||
$return['needed_limit'] = $count + 100;
|
$return['needed_limit'] = $count + 100;
|
||||||
|
|||||||
Reference in New Issue
Block a user