Bugfix: forced locale en_US for priority, since on some locale (eg. Italian) the separator is a comma.

This commit is contained in:
g4b0 2013-07-17 11:31:31 +02:00 committed by g4b0
parent f0ee2a7ff9
commit ef98250e54
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ class GoogleSitemapSiteTreeExtension extends GoogleSitemapExtension {
* @return mixed
*/
public function getGooglePriority() {
setlocale(LC_ALL, "en_US.UTF8");
$priority = $this->owner->getField('Priority');
if(!$priority) {