From fe22f11f10854e2d53f9d142d99e320734939d35 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 25 Jul 2019 15:07:00 +0200 Subject: [PATCH] More generic code --- htdocs/core/lib/website.lib.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/core/lib/website.lib.php b/htdocs/core/lib/website.lib.php index 08ccdb05246..a4c187f2ffa 100644 --- a/htdocs/core/lib/website.lib.php +++ b/htdocs/core/lib/website.lib.php @@ -438,13 +438,12 @@ function includeContainer($containerref) * Return HTML content to add structured data for an article, news or Blog Post. * * @param string $type 'blogpost', 'product', 'software'... - * @param WebsitePage $websitepage Website page object * @param array $data Array of data parameters for structured data * @return string HTML content */ -function getStructuredData($type, WebsitePage $websitepage, $data = array()) +function getStructuredData($type, $data = array()) { - global $conf, $db, $hookmanager, $langs, $mysoc, $user, $website, $weblangs; // Very important. Required to have var available when running inluded containers. + global $conf, $db, $hookmanager, $langs, $mysoc, $user, $website, $websitepage, $weblangs; // Very important. Required to have var available when running inluded containers. global $includehtmlcontentopened; global $websitekey, $websitepagefile;