diff --git a/modules/gsitemap/gsitemap-cron.php b/modules/gsitemap/gsitemap-cron.php new file mode 100755 index 000000000..e8ae96de2 --- /dev/null +++ b/modules/gsitemap/gsitemap-cron.php @@ -0,0 +1,19 @@ +link = new Link(); + +echo $gsitemap->generateSitemapIndex(); \ No newline at end of file diff --git a/modules/gsitemap/gsitemap.php b/modules/gsitemap/gsitemap.php index e20f19309..adbeab364 100644 --- a/modules/gsitemap/gsitemap.php +++ b/modules/gsitemap/gsitemap.php @@ -94,7 +94,7 @@ class Gsitemap extends Module * * @return bool */ - private function generateSitemapIndex() + public function generateSitemapIndex() { $xmlString = << @@ -416,10 +416,10 @@ XML; -


+

'.$this->l('Use cron job to re-build the sitemap:').'

- '.$domain.Tools::htmlentitiesUTF8(dirname($_SERVER['REQUEST_URI'])).'?controller=adminmodules&configure=gsitemap&token='.Tools::getValue('token').'&btnSubmit&GSITEMAP_ALL_CMS='.((int)Configuration::get('GSITEMAP_ALL_CMS')).'&GSITEMAP_ALL_PRODUCTS='.((int)Configuration::get('GSITEMAP_ALL_PRODUCTS')).' + '.$domain.__PS_BASE_URI__.'modules/gsitemap/gsitemap-cron?&token='.substr(Tools::encrypt('gsitemap/cron'),0,10).'&GSITEMAP_ALL_CMS='.((int)Configuration::get('GSITEMAP_ALL_CMS')).'&GSITEMAP_ALL_PRODUCTS='.((int)Configuration::get('GSITEMAP_ALL_PRODUCTS')).'

'; }