mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 09:05:48 +00:00
More Silverstrie 4 compatibility
This commit is contained in:
parent
51fa6f4c25
commit
4333bb6777
@ -244,7 +244,7 @@ class GoogleSitemap extends Object
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($redirector) {
|
if($redirector) {
|
||||||
foreach (ClassInfo::subclassesFor('RedirectorPage') as $redirectorClass) {
|
foreach (ClassInfo::subclassesFor('SilverStripe\\CMS\\Model\\RedirectorPage') as $redirectorClass) {
|
||||||
$instances = $instances->exclude('ClassName', $redirectorClass);
|
$instances = $instances->exclude('ClassName', $redirectorClass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user