mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Merge pull request #103 from mikenz/patch-1
Exclude all Redirector templates, not just RedirectorPage
This commit is contained in:
commit
11a894a10e
@ -227,7 +227,9 @@ class GoogleSitemap extends Object
|
||||
}
|
||||
|
||||
if($redirector) {
|
||||
$instances = $instances->exclude('ClassName', 'RedirectorPage');
|
||||
foreach (ClassInfo::subclassesFor('RedirectorPage') as $redirectorClass) {
|
||||
$instances = $instances->exclude('ClassName', $redirectorClass);
|
||||
}
|
||||
}
|
||||
} elseif ($class == "GoogleSitemapRoute") {
|
||||
$instances = array_slice(self::$routes, ($page - 1) * $count, $count);
|
||||
|
Loading…
Reference in New Issue
Block a user