mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Merge pull request #51 from TomSpeak/patch-2
FIX: canIncludeGoogleSitemap missing owner call
This commit is contained in:
commit
8403cb5773
@ -62,7 +62,7 @@ class GoogleSitemapSiteTreeExtension extends GoogleSitemapExtension {
|
|||||||
*/
|
*/
|
||||||
public function canIncludeInGoogleSitemap() {
|
public function canIncludeInGoogleSitemap() {
|
||||||
$result = parent::canIncludeInGoogleSitemap();
|
$result = parent::canIncludeInGoogleSitemap();
|
||||||
$result = ($this instanceof ErrorPage) ? false : $result;
|
$result = ($this->owner instanceof ErrorPage) ? false : $result;
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user