Browse Source

fix undefined variable

main
ghost 1 year ago
parent
commit
6eefd9b762
  1. 2
      crontab/crawler.php

2
crontab/crawler.php

@ -121,7 +121,7 @@ foreach ($db->getHostCrawlQueue(CRAWL_HOST_LIMIT, time() - CRAWL_HOST_SECONDS_OF
if ($sitemapLink = $robots->getSitemap()) { if ($sitemapLink = $robots->getSitemap()) {
// Replace relative paths // Replace relative paths
$sitemapURL = sprintf('%s/%s', $queueHost->url, trim(str_ireplace($hostCrawlQueue->url, '', $sitemapLink), '/')); $sitemapURL = sprintf('%s/%s', $queueHost->url, trim(str_ireplace($queueHost->url, '', $sitemapLink), '/'));
// Set default path // Set default path
} else { } else {

Loading…
Cancel
Save