Skip to content

Commit 0a17d0c

Browse files
Merge pull request #101 from creative-commoners/pulls/2.4/exists
FIX Ensure page has extension before calling method
2 parents 8287278 + 66da923 commit 0a17d0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/VersionFeedController.php

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public function linkToAllSiteRSSFeed()
191191
{
192192
if (!Config::inst()->get(VersionFeed::class, 'allchanges_enabled')
193193
|| !SiteConfig::current_site_config()->AllChangesEnabled
194+
|| !method_exists($this->owner, 'getSiteRSSLink')
194195
) {
195196
return;
196197
}

0 commit comments

Comments
 (0)