[FIX] canIncludeGoogleSitemap

Added $this->owner
This commit is contained in:
Thomas Speak 2013-08-23 16:08:49 +01:00 committed by Tom Speak
parent 48b5c0db70
commit b0cc13c9ed

View File

@ -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;
} }