Fixing style errors.
This commit is contained in:
parent
4032c8f877
commit
08a21a7408
@ -2317,12 +2317,12 @@ if ($action == 'generatesitemaps') {
|
|||||||
$robotcontent = $result;
|
$robotcontent = $result;
|
||||||
}
|
}
|
||||||
$robotsitemap = "Sitemap: ".$domainname."/".$xmlname;
|
$robotsitemap = "Sitemap: ".$domainname."/".$xmlname;
|
||||||
$result = strpos($robotcontent,'Sitemap: ');
|
$result = strpos($robotcontent, 'Sitemap: ');
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$result = preg_replace("/Sitemap.*\n/",$robotsitemap,$robotcontent);
|
$result = preg_replace("/Sitemap.*\n/", $robotsitemap, $robotcontent);
|
||||||
$robotcontent = $result ? $result : $robotcontent;
|
$robotcontent = $result ? $result : $robotcontent;
|
||||||
}else{
|
}else {
|
||||||
$robotcontent .= $robotsitemap."\n";
|
$robotcontent .= $robotsitemap."\n";
|
||||||
}
|
}
|
||||||
$result = dolSaveRobotFile($filerobot, $robotcontent);
|
$result = dolSaveRobotFile($filerobot, $robotcontent);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user