Commit 5c366cbb authored by andrei.dincu's avatar andrei.dincu

Issue #2249723 by andrei.dincu: xmlsitemap_sitemap_get_file() takes first...

Issue #2249723 by andrei.dincu: xmlsitemap_sitemap_get_file() takes first argument as XmlSitemapInterface object
parent 6186630b
......@@ -470,11 +470,11 @@ function xmlsitemap_sitemap_delete_multiple(array $smids) {
* Return the expected file path for a specific sitemap chunk.
*
* @param $sitemap
* An XML sitemap array.
* An XmlSitemapInterface sitemap object.
* @param $chunk
* An optional specific chunk in the sitemap. Defaults to the index page.
*/
function xmlsitemap_sitemap_get_file(stdClass $sitemap, $chunk = 'index') {
function xmlsitemap_sitemap_get_file(XmlSitemapInterface $sitemap, $chunk = 'index') {
return xmlsitemap_get_directory($sitemap) . "/{$chunk}.xml";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment