Skip to content
Snippets Groups Projects
Commit 4bf6582a authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #48349 : use php built-in function

parent 7cd41d10
Branches
Tags
2 merge requests!2334Master,!2104Dev#48349 ux versionning
......@@ -33,14 +33,9 @@ class ZendAfi_View_Helper_Admin_RenderVersionForm
protected function _getFieldsetDecorator($form) {
$decorators = parent::_getFieldsetDecorator($form);
$new = [];
foreach($decorators as $k => $decorator) {
if (1 == $k)
$new[] = new ZendAfi_Form_Decorator_VersionCompare_Header();
$new[] = $decorator;
}
return $new;
array_unshift($decorators, new ZendAfi_Form_Decorator_VersionCompare_Header());
return $decorators;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment