mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 09:05:48 +00:00
Added a set change frequency check.
Added a check to see if user has set the `set_change_frequency` in yml config.
This commit is contained in:
parent
c756131242
commit
31eaba11f0
@ -78,6 +78,10 @@ class GoogleSitemapExtension extends DataExtension {
|
||||
* @return SS_Datetime
|
||||
*/
|
||||
public function getChangeFrequency() {
|
||||
if($freq = Config::inst()->get('GoogleSitemap', 'set_change_frequency')) {
|
||||
return $freq;
|
||||
}
|
||||
|
||||
if($freq = GoogleSitemap::get_frequency_for_class($this->owner->class)) {
|
||||
return $freq;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user