Oubli dans la MAJ en 2.3.4 --> à vérifier s'il n'y a pas d'autres oublis
This commit is contained in:
@@ -53,6 +53,17 @@ class AdminUtilities extends AbstractSmartyPlugin
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function optionOffsetGenerator($params, &$smarty)
|
||||
{
|
||||
$label = $this->getParam($params, 'label', null);
|
||||
|
||||
if (null !== $level = $this->getParam($params, [ 'l', 'level'], null)) {
|
||||
$label = str_repeat(' ', 4 * $level) . $label;
|
||||
}
|
||||
|
||||
return $label;
|
||||
}
|
||||
|
||||
public function generatePositionChangeBlock($params, &$smarty)
|
||||
{
|
||||
@@ -155,6 +166,7 @@ class AdminUtilities extends AbstractSmartyPlugin
|
||||
return array(
|
||||
new SmartyPluginDescriptor('function', 'admin_sortable_header', $this, 'generateSortableColumnHeader'),
|
||||
new SmartyPluginDescriptor('function', 'admin_position_block', $this, 'generatePositionChangeBlock'),
|
||||
new SmartyPluginDescriptor('function', 'option_offset', $this, 'optionOffsetGenerator'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user