File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,8 @@ public function setComponents($components,$merge=true)
466
466
$ this ->setComponent ($ id ,$ config );
467
467
continue ;
468
468
}
469
- elseif (isset ($ this ->_components [$ id ]))
469
+
470
+ if (isset ($ this ->_components [$ id ]))
470
471
{
471
472
if (isset ($ config ['class ' ]))
472
473
{
@@ -476,16 +477,14 @@ public function setComponents($components,$merge=true)
476
477
$ this ->_componentConfig [$ id ]=$ config ; //we should ignore merge here
477
478
continue ;
478
479
}
479
- else
480
- {
481
- $ class =$ config ['class ' ];
482
- unset($ config ['class ' ]);
483
480
484
- foreach ( $ config as $ key => $ value )
485
- $ this -> _components [ $ id ]-> $ key = $ value ;
481
+ $ class = $ config [ ' class ' ];
482
+ unset( $ config [ ' class ' ]) ;
486
483
487
- $ config ['class ' ]=$ class ;
488
- }
484
+ foreach ($ config as $ key =>$ value )
485
+ $ this ->_components [$ id ]->$ key =$ value ;
486
+
487
+ $ config ['class ' ]=$ class ;
489
488
}
490
489
else
491
490
{
You can’t perform that action at this time.
0 commit comments