diff --git a/component/admin/views/translations/tmpl/default_body.php b/component/admin/views/translations/tmpl/default_body.php index 1855d560..3b64adbf 100644 --- a/component/admin/views/translations/tmpl/default_body.php +++ b/component/admin/views/translations/tmpl/default_body.php @@ -16,8 +16,17 @@ $user = JFactory::getUser(); $userId = $user->get('id'); $lang = JFactory::getLanguage(); +$max_vars = ini_get('max_input_vars'); ?> items as $i => $item) : ?> + 0 && $item->total > $max_vars) + { + $limit = 1; + } + ?> authorise('localise.edit', 'com_localise' . (isset($item->id) ? ('.' . $item->id) : '')); ?> @@ -63,9 +72,14 @@ writable && !$item->error && $canEdit) : ?> - - name; ?>.ini - + + + name; ?>.ini + + + " . $item->name . ".ini (Strings protection.)"; ?> + enqueueMessage("The PHP directve 'max_input_vars' value is minor than the required one to edit the file: " . $item->tag . "." . $item->name . ".ini", 'warning'); ?> + true, 'inactive_title'=>JText::sprintf('COM_LOCALISE_TOOLTIP_TRANSLATIONS_NOTEDITABLE', substr($item->path, strlen(JPATH_ROOT))), 'inactive_class'=>'16-error', 'enabled' => false, 'translate'=>false)); ?> name; ?>.ini