Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
A
admin_toolbar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
admin_toolbar
Commits
2c88aeab
Commit
2c88aeab
authored
Feb 18, 2016
by
eme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue
#2666964
parent
e67638d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
admin_toolbar.module
admin_toolbar.module
+0
-11
No files found.
admin_toolbar.module
View file @
2c88aeab
...
...
@@ -50,18 +50,7 @@ function toolbar_tools_menu_navigation_links(array $tree) {
if
(
$element
->
subtree
)
{
toolbar_tools_menu_navigation_links
(
$element
->
subtree
);
}
// Make sure we have a path specific ID in place, so we can attach icons
// and behaviors to the menu links.
$link
=
$element
->
link
;
$url
=
$link
->
getUrlObject
();
if
(
!
$url
->
isRouted
())
{
// This is an unusual case, so just get a distinct, safe string.
$id
=
substr
(
Crypt
::
hashBase64
(
$url
->
getUri
()),
0
,
16
);
}
else
{
$id
=
str_replace
(
array
(
'.'
,
'<'
,
'>'
),
array
(
'-'
,
''
,
''
),
$url
->
getRouteName
());
}
// Get the non-localized title to make the icon class.
$definition
=
$link
->
getPluginDefinition
();
...
...
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