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
2fc1a382
Commit
2fc1a382
authored
May 31, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'arturf-master'
parents
d7a251bb
ad7f7c43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
Menu.php
framework/widgets/Menu.php
+5
-3
No files found.
framework/CHANGELOG.md
View file @
2fc1a382
...
@@ -65,6 +65,7 @@ Yii Framework 2 Change Log
...
@@ -65,6 +65,7 @@ Yii Framework 2 Change Log
-
Enh #3574: Add integrity check support for SQLite (zeeke)
-
Enh #3574: Add integrity check support for SQLite (zeeke)
-
Enh #3597: Nested array support for HTML5 custom "data-
*
" attributes (armab)
-
Enh #3597: Nested array support for HTML5 custom "data-
*
" attributes (armab)
-
Enh #3607: Added support for limit in migrations actions: history, new, redo (Ragazzo)
-
Enh #3607: Added support for limit in migrations actions: history, new, redo (Ragazzo)
-
Enh #3636: Hide menu container tag with empty items in
`yii\widgets\Menu`
(arturf)
-
Enh: Added support for using sub-queries when building a DB query with
`IN`
condition (qiangxue)
-
Enh: Added support for using sub-queries when building a DB query with
`IN`
condition (qiangxue)
-
Enh: Supported adding a new response formatter without the need to reconfigure existing formatters (qiangxue)
-
Enh: Supported adding a new response formatter without the need to reconfigure existing formatters (qiangxue)
-
Enh: Added
`yii\web\UrlManager::addRules()`
to simplify adding new URL rules (qiangxue)
-
Enh: Added
`yii\web\UrlManager::addRules()`
to simplify adding new URL rules (qiangxue)
...
...
framework/widgets/Menu.php
View file @
2fc1a382
...
@@ -166,9 +166,11 @@ class Menu extends Widget
...
@@ -166,9 +166,11 @@ class Menu extends Widget
$this
->
params
=
Yii
::
$app
->
request
->
getQueryParams
();
$this
->
params
=
Yii
::
$app
->
request
->
getQueryParams
();
}
}
$items
=
$this
->
normalizeItems
(
$this
->
items
,
$hasActiveChild
);
$items
=
$this
->
normalizeItems
(
$this
->
items
,
$hasActiveChild
);
$options
=
$this
->
options
;
if
(
!
empty
(
$items
))
{
$tag
=
ArrayHelper
::
remove
(
$options
,
'tag'
,
'ul'
);
$options
=
$this
->
options
;
echo
Html
::
tag
(
$tag
,
$this
->
renderItems
(
$items
),
$options
);
$tag
=
ArrayHelper
::
remove
(
$options
,
'tag'
,
'ul'
);
echo
Html
::
tag
(
$tag
,
$this
->
renderItems
(
$items
),
$options
);
}
}
}
/**
/**
...
...
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