From 729fc207f082e23d47017a3e7b0c8ffd813d24dc Mon Sep 17 00:00:00 2001
From: mDeflotte
Date: Wed, 7 Mar 2012 09:17:34 +0000
Subject: [PATCH] [-] MO : #PSFV-605 - Fix problem with uri render
---
modules/gsitemap/gsitemap.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gsitemap/gsitemap.php b/modules/gsitemap/gsitemap.php
index b342fab96..3945cecae 100644
--- a/modules/gsitemap/gsitemap.php
+++ b/modules/gsitemap/gsitemap.php
@@ -365,10 +365,11 @@ XML;
$xml = simplexml_load_file($filename);
$nbPages = count($xml->url);
+ $sitemap_uri = 'http://'.rtrim($shop['domain'].$shop['uri'], '/').__PS_BASE_URI__.$info['filename'].'-'.$shop['id_shop'].'.'.$info['extension'];
$this->_html .= ''.$this->l('Sitemap for: ').$shop['domain'].$shop['uri'].'
';
$this->_html .= ''.$this->l('Your Google sitemap file is online at the following address:').'
- '.Tools::getShopDomain(true, true).__PS_BASE_URI__.$info['filename'].'-'.$shop['id_shop'].'.'.$info['extension'].'
';
+ '.$sitemap_uri.'
';
$this->_html .= $this->l('Update:').' '.utf8_encode(strftime('%A %d %B %Y %H:%M:%S',$fstat['mtime'])).'
';
$this->_html .= $this->l('Filesize:').' '.number_format(($fstat['size']*.000001), 3).'MB
';