Skip to content

Commit 159353e

Browse files
committed
Set default alignment for NavbarHelper::searchForm.
1 parent b00e3e7 commit 159353e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/View/Helper/BootstrapNavbarHelper.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,10 @@ public function text ($text, $options = []) {
283283
**/
284284
public function searchForm ($model = null, $options = []) {
285285
$options += [
286-
'align' => false
286+
'align' => 'left'
287287
];
288-
$align = $options['align'];
288+
$options = $this->addClass($options, ['navbar-form', 'navbar-'.$options['align']]) ;
289289
unset ($options['align']) ;
290-
$options = $this->addClass($options, ['navbar-form', 'navbar-'.$align]) ;
291290
return $this->Form->searchForm($model, $options) ;
292291
}
293292

0 commit comments

Comments
 (0)