Merge pull request #167 from pavol-tk/patch-1

Use ClassName property instead of class
This commit is contained in:
Will Rossiter 2020-06-03 08:36:14 +12:00 committed by GitHub
commit 982d96c203
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;
}