FIX Don't use deprecated usage of get_class() (#103)

This commit is contained in:
Guy Sartorelli 2024-03-20 12:19:26 +13:00 committed by GitHub
parent bb0c48dae5
commit 49cc58109c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ class CachedContentFilter extends ContentFilter
$cache = $this->getCache();
// Return cached value if available
$cacheEnabled = Config::inst()->get(get_class(), 'cache_enabled');
$cacheEnabled = Config::inst()->get(self::class, 'cache_enabled');
$result = (isset($_GET['flush']) || !$cacheEnabled)
? null
: $cache->get($key);

View File

@ -206,7 +206,7 @@ class VersionFeed extends SiteTreeExtension
public function getSiteRSSLink()
{
if (Config::inst()->get(get_class(), 'allchanges_enabled')
if (Config::inst()->get(self::class, 'allchanges_enabled')
&& SiteConfig::current_site_config()->AllChangesEnabled
) {
return $this->owner->Link('allchanges');
@ -215,7 +215,7 @@ class VersionFeed extends SiteTreeExtension
public function getDefaultRSSLink()
{
if (Config::inst()->get(get_class(), 'changes_enabled') && $this->owner->PublicHistory) {
if (Config::inst()->get(self::class, 'changes_enabled') && $this->owner->PublicHistory) {
return $this->owner->Link('changes');
}
}