Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
ed7b7db8
Commit
ed7b7db8
authored
Dec 17, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LinkSorter did not use Html options
fixes #1556
parent
a911e250
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
LinkSorter.php
framework/yii/widgets/LinkSorter.php
+2
-1
No files found.
framework/yii/widgets/LinkSorter.php
View file @
ed7b7db8
...
@@ -34,6 +34,7 @@ class LinkSorter extends Widget
...
@@ -34,6 +34,7 @@ class LinkSorter extends Widget
public
$attributes
;
public
$attributes
;
/**
/**
* @var array HTML attributes for the sorter container tag.
* @var array HTML attributes for the sorter container tag.
* See [[yii\helpers\Html::ul()]] for special attributes.
*/
*/
public
$options
=
[
'class'
=>
'sorter'
];
public
$options
=
[
'class'
=>
'sorter'
];
...
@@ -68,6 +69,6 @@ class LinkSorter extends Widget
...
@@ -68,6 +69,6 @@ class LinkSorter extends Widget
foreach
(
$attributes
as
$name
)
{
foreach
(
$attributes
as
$name
)
{
$links
[]
=
$this
->
sort
->
link
(
$name
);
$links
[]
=
$this
->
sort
->
link
(
$name
);
}
}
return
Html
::
ul
(
$links
,
[
'encode'
=>
false
]
);
return
Html
::
ul
(
$links
,
array_merge
(
$this
->
options
,
[
'encode'
=>
false
])
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment