Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichaykin/82f54d5edb488e83e965b64a243c3650 to your computer and use it in GitHub Desktop.
Save ichaykin/82f54d5edb488e83e965b64a243c3650 to your computer and use it in GitHub Desktop.
diff --git a/app/addons/google_sitemap/func.php b/app/addons/google_sitemap/func.php
index cc54b10..769b10e 100644
--- a/app/addons/google_sitemap/func.php
+++ b/app/addons/google_sitemap/func.php
@@ -74,8 +74,9 @@ function fn_google_sitemap_generate_link($type, $id, $languages, $extra = [], $s
* @param string[] $languages List of languages to generate the sitemap for
* @param array $extra Additional link parameters
* @param int $storefront_id Storefront idenfitier to generate the sitemap for
+ * @param string $link Entry link
*/
- fn_set_hook('google_sitemap_generate_link_get_object_link', $type, $id, $languages, $extra, $storefront_id);
+ fn_set_hook('google_sitemap_generate_link_get_object_link', $type, $id, $languages, $extra, $storefront_id, $link);
}
$links = array();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment