From 34ce1e6d9a70ee7a66675bfe37526359b007fb99 Mon Sep 17 00:00:00 2001 From: mediafoks Date: Wed, 6 Nov 2024 17:22:45 +0300 Subject: [PATCH] bug fix type variable --- ksopengraph.xml | 2 +- services/provider.php | 2 +- src/Extension/KsOpenGraph.php | 15 ++++++++------- update.xml | 4 ++-- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/ksopengraph.xml b/ksopengraph.xml index d1b2c33..b31de49 100644 --- a/ksopengraph.xml +++ b/ksopengraph.xml @@ -6,7 +6,7 @@ Copyright (C) 2024 Sergey Kuznetsov MIT mediafoks@google.com - 2.0.0 + 2.0.1 PLG_CONTENT_KS_OPEN_GRAPH_XML_DESCRIPTION Joomla\Plugin\Content\KsOpenGraph diff --git a/services/provider.php b/services/provider.php index 5cd07af..06e27ba 100644 --- a/services/provider.php +++ b/services/provider.php @@ -27,7 +27,7 @@ * * @return void * - * @since 2.0.0 + * @since 2.0.1 */ public function register(Container $container) { diff --git a/src/Extension/KsOpenGraph.php b/src/Extension/KsOpenGraph.php index eba5b20..18a523f 100644 --- a/src/Extension/KsOpenGraph.php +++ b/src/Extension/KsOpenGraph.php @@ -1,7 +1,7 @@ pluginNr = 1; } else return; - $this->renderTag('og:site_name', $config->get('sitename'), $type); - $this->renderTag('og:title', $thisTitle, $type); - $this->renderTag('og:description', $this->catStr($thisDescription), $type); - $this->renderTag('og:url', Uri::current(), $type); - $this->renderTag('og:image', $this->setImage($this->realCleanImageURL($thisImage)), $type); - $this->renderTag('og:type', $thisOgType, $type); + $this->renderTag('og:site_name', $config->get('sitename'), $this->type); + $this->renderTag('og:title', $thisTitle, $this->type); + $this->renderTag('og:description', $this->catStr($thisDescription), $this->type); + $this->renderTag('og:url', Uri::current(), $this->type); + $this->renderTag('og:image', $this->setImage($this->realCleanImageURL($thisImage)), $this->type); + $this->renderTag('og:type', $thisOgType, $this->type); } } diff --git a/update.xml b/update.xml index 9292b40..cda8585 100644 --- a/update.xml +++ b/update.xml @@ -5,9 +5,9 @@ ksopengraph plugin content - 2.0.0 + 2.0.1 - https://github.com/mediafoks/plg_content_ksopengraph/archive/refs/tags/v2.0.0.zip + https://github.com/mediafoks/plg_content_ksopengraph/archive/refs/tags/v2.0.1.zip stable