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-18 09:23:53 +02:00
parent ac1e61faae
commit 9b7c14abc4

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) {