FIX Changing `alterCanIncludeInGoogleSitemap` to call owner object and extensions

At the moment `alterCanIncludeInGoogleSitemap` is only called on other extensions, but really we'd want to see this called on the owner object and its extensions.

Fixed to use `invokeWithExtensions` rather than `extend`
This commit is contained in:
Thomas Speak 2013-08-27 15:32:52 +01:00
parent 9dcc00bafd
commit e385b2f80c
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class GoogleSitemapExtension extends DataExtension {
$can = $this->owner->getGooglePriority();
}
$this->owner->extend('alterCanIncludeInGoogleSitemap', $can);
$this->owner->invokeWithExtensions('alterCanIncludeInGoogleSitemap', $can);
return $can;
}