Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
06b9f300
Commit
06b9f300
authored
Sep 25, 2013
by
webchick
Browse files
Issue
#2095971
by ekes: Remove instances of menu_get_object()('taxonomy_term()').
parent
b584ef7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/taxonomy/taxonomy.module
View file @
06b9f300
...
...
@@ -458,8 +458,12 @@ function template_preprocess_taxonomy_term(&$variables) {
* A taxonomy term entity.
*/
function
taxonomy_term_is_page
(
Term
$term
)
{
$page_term
=
menu_get_object
(
'taxonomy_term'
,
2
);
return
(
!
empty
(
$page_term
)
?
$page_term
->
id
()
==
$term
->
id
()
:
FALSE
);
$request
=
\
Drupal
::
request
();
if
(
$request
->
attributes
->
has
(
'taxonomy_term'
))
{
$page_term
=
$request
->
attributes
->
get
(
'taxonomy_term'
);
return
$page_term
->
id
()
==
$term
->
id
();
}
return
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