Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
xmlsitemap
Commits
272c2410
Commit
272c2410
authored
Jun 26, 2014
by
andrei.dincu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2249723
by andrei.dincu: Few changes in xmlsitemap_sitemap_load_by_context()
parent
7b9f643e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
xmlsitemap.module
xmlsitemap.module
+1
-3
No files found.
xmlsitemap.module
View file @
272c2410
...
...
@@ -416,11 +416,9 @@ function xmlsitemap_sitemap_load_by_context(array $context = NULL) {
if
(
!
isset
(
$context
))
{
$context
=
xmlsitemap_get_current_context
();
}
$hash
=
xmlsitemap_sitemap_get_context_hash
(
$context
);
$sitemaps
=
\
Drupal
::
entityManager
()
->
getStorage
(
'xmlsitemap'
)
->
loadMultiple
();
return
reset
(
$sitemaps
);
foreach
(
$sitemaps
as
$sitemap
)
{
if
(
$sitemap
->
getC
ontext
()
==
$
hash
)
{
if
(
$sitemap
->
c
ontext
==
$
context
)
{
return
$sitemap
;
}
}
...
...
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