mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Merge pull request #174 from wilr/pr/172
Handle cases such as 'Class.RelationName'
This commit is contained in:
commit
56b25a424f
@ -168,6 +168,10 @@ class GoogleSitemapSiteTreeExtension extends GoogleSitemapExtension
|
||||
$image = true;
|
||||
}
|
||||
} else {
|
||||
if (strpos($type, '.') !== false) {
|
||||
$type = explode('.', $type)[0];
|
||||
}
|
||||
|
||||
if (singleton($type) instanceof Image) {
|
||||
$image = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user