Merge pull request #51 from TomSpeak/patch-2

FIX: canIncludeGoogleSitemap missing owner call
This commit is contained in:
Will Rossiter 2013-08-23 14:27:46 -07:00
commit 8403cb5773
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class GoogleSitemapSiteTreeExtension extends GoogleSitemapExtension {
*/
public function canIncludeInGoogleSitemap() {
$result = parent::canIncludeInGoogleSitemap();
$result = ($this instanceof ErrorPage) ? false : $result;
$result = ($this->owner instanceof ErrorPage) ? false : $result;
return $result;
}