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

View File

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