mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Merge pull request #167 from pavol-tk/patch-1
Use ClassName property instead of class
This commit is contained in:
commit
982d96c203
@ -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