Merge pull request #101 from creative-commoners/pulls/2.4/exists

FIX Ensure page has extension before calling method
This commit is contained in:
Guy Sartorelli 2024-03-04 11:43:49 +13:00 committed by GitHub
commit 0a17d0c537
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ class VersionFeedController extends Extension
{
if (!Config::inst()->get(VersionFeed::class, 'allchanges_enabled')
|| !SiteConfig::current_site_config()->AllChangesEnabled
|| !method_exists($this->owner, 'getSiteRSSLink')
) {
return;
}