mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Merge pull request #52 from TomSpeak/master
FIX Changing `alterCanIncludeInGoogleSitemap` to call owner and extensions
This commit is contained in:
commit
1416ad24ae
@ -31,7 +31,7 @@ class GoogleSitemapExtension extends DataExtension {
|
|||||||
$can = $this->owner->getGooglePriority();
|
$can = $this->owner->getGooglePriority();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->owner->extend('alterCanIncludeInGoogleSitemap', $can);
|
$this->owner->invokeWithExtensions('alterCanIncludeInGoogleSitemap', $can);
|
||||||
|
|
||||||
return $can;
|
return $can;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user