Use ClassName property instead of class

Property "class" does not exists. We should use ClassName.
This commit is contained in:
Pavol Tuka 2020-06-02 14:08:18 +02:00 committed by GitHub
parent c1fc291e59
commit 56ef63f6c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ class GoogleSitemapExtension extends DataExtension
return ($priority < 0) ? false : $priority;
}
return GoogleSitemap::get_priority_for_class($this->owner->class);
return GoogleSitemap::get_priority_for_class($this->owner->ClassName);
}
/**
@ -117,7 +117,7 @@ class GoogleSitemapExtension extends DataExtension
*/
public function getChangeFrequency()
{
if ($freq = GoogleSitemap::get_frequency_for_class($this->owner->class)) {
if ($freq = GoogleSitemap::get_frequency_for_class($this->owner->ClassName)) {
return $freq;
}