mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Use ClassName property instead of class
Property "class" does not exists. We should use ClassName.
This commit is contained in:
parent
c1fc291e59
commit
56ef63f6c3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user