FIX Ensure page has extension before calling method

This commit is contained in:
Steve Boyd 2024-02-29 14:05:44 +13:00
parent 82872780eb
commit 66da923502

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