forked from ZwiiCMS-Team/ZwiiCMS
fichier robots.txt absent des ressources suppriemr la copie
This commit is contained in:
parent
ebbe211b92
commit
21887439e4
@ -945,15 +945,13 @@ class common {
|
|||||||
// Move flushed files to their final location. Compress if the option is enabled.
|
// Move flushed files to their final location. Compress if the option is enabled.
|
||||||
$sitemap->finalize();
|
$sitemap->finalize();
|
||||||
|
|
||||||
// Update robots.txt file in output directory or create a new one
|
// Update robots.txt file in output directory
|
||||||
|
|
||||||
if ($this->getData(['config','seo', 'robots']) === true) {
|
if ($this->getData(['config','seo', 'robots']) === true) {
|
||||||
unlink('robots.txt');
|
unlink('robots.txt');
|
||||||
$sitemap->updateRobots();
|
$sitemap->updateRobots();
|
||||||
} else {
|
|
||||||
copy('core/module/install/ressource/robots.txt', 'robots.txt');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Submit your sitemaps to Google, Yahoo, Bing and Ask.com
|
// Submit your sitemaps to Google, Yahoo, Bing and Ask.com
|
||||||
if (empty ($this->getData(['config','proxyType']) . $this->getData(['config','proxyUrl']) . ':' . $this->getData(['config','proxyPort'])) ) {
|
if (empty ($this->getData(['config','proxyType']) . $this->getData(['config','proxyUrl']) . ':' . $this->getData(['config','proxyPort'])) ) {
|
||||||
$sitemap->submitSitemap();
|
$sitemap->submitSitemap();
|
||||||
|
Loading…
Reference in New Issue
Block a user