GoogleSitemap 'not indexed' Fix

GoogleSitemap 'not indexed' Fix

Simple fix that is somehow forgotten along the way. Based on this ticket by Martijn, 2 years ago...

1. In GoogleSitemapDecorator.php line 29:


'-1' => _t('SiteTree.PRIORITYNOTINDEXED', "Not indexed")

replace by

'no-ix' => _t('SiteTree.PRIORITYNOTINDEXED', "Not indexed")

In GoogleSitemapDecorator.php line 83:

 

elseif ($this->owner->getField('Priority') == -1) {

replace by:

elseif ($this->owner->getField('Priority') == 'no-ix') {

@TODO

Create a pull request?

Comments

Het versturen van reacties is uitgeschakeld.

RSS feed voor reacties op deze pagina