mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 09:05:48 +00:00
[FIX] canIncludeGoogleSitemap
Added $this->owner
This commit is contained in:
parent
48b5c0db70
commit
b0cc13c9ed
@ -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…
x
Reference in New Issue
Block a user