Bugfix: forced locale en_US for priority, since on some locale (eg. Italian) the separator is a comma.
This commit is contained in:
parent
ac1e61faae
commit
9b7c14abc4
|
@ -71,6 +71,7 @@ class GoogleSitemapSiteTreeExtension extends GoogleSitemapExtension {
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getGooglePriority() {
|
public function getGooglePriority() {
|
||||||
|
setlocale(LC_ALL, "en_US.UTF8");
|
||||||
$priority = $this->owner->getField('Priority');
|
$priority = $this->owner->getField('Priority');
|
||||||
|
|
||||||
if(!$priority) {
|
if(!$priority) {
|
||||||
|
|
Loading…
Reference in New Issue