X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fmetatag%2Fmetatag_open_graph%2Fmetatag_open_graph.module;h=fa5ffa70749881da3a4ba93837f77c4a3ac9a529;hp=46621e46b72494f1372026095dda46540637e35c;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/metatag/metatag_open_graph/metatag_open_graph.module b/web/modules/contrib/metatag/metatag_open_graph/metatag_open_graph.module index 46621e46b..fa5ffa707 100644 --- a/web/modules/contrib/metatag/metatag_open_graph/metatag_open_graph.module +++ b/web/modules/contrib/metatag/metatag_open_graph/metatag_open_graph.module @@ -21,18 +21,10 @@ function metatag_open_graph_preprocess_html(&$variables) { $namespaces = []; if (!\Drupal::moduleHandler()->moduleExists('rdf')) { $namespaces = [ - 'xmlns:dc' => 'http://purl.org/dc/terms/', - 'xmlns:og' => 'http://ogp.me/ns#', + 'prefix' => 'og: http://ogp.me/ns#', ]; } - // Namespaces for OpenGraph. - $namespaces['xmlns:article'] = "http://ogp.me/ns/article#"; - $namespaces['xmlns:book'] = "http://ogp.me/ns/book#"; - $namespaces['xmlns:product'] = "http://ogp.me/ns/product#"; - $namespaces['xmlns:profile'] = "http://ogp.me/ns/profile#"; - $namespaces['xmlns:video'] = "http://ogp.me/ns/video#"; - // Namespaces for Google+. if (isset($variables['itemtype'])) { $namespaces['itemscope'] = '';