@@ -60,8 +60,9 @@ |
||
| 60 | 60 | if ($this->isAsset($path) && !$this->isExcluded($path)) { |
| 61 | 61 | // Check if a file extension is present |
| 62 | 62 | $ext = strtolower(pathinfo($path, PATHINFO_EXTENSION)); |
| 63 | - if (in_array($ext, $supported_extensions)) |
|
| 64 | - $sitemap->addItem(rtrim($baseUrl, '/') . $path, time(), Sitemap::MONTHLY); |
|
| 63 | + if (in_array($ext, $supported_extensions)) { |
|
| 64 | + $sitemap->addItem(rtrim($baseUrl, '/') . $path, time(), Sitemap::MONTHLY); |
|
| 65 | + } |
|
| 65 | 66 | } |
| 66 | 67 | }); |
| 67 | 68 | |