From 72055d43661fc3eda283e7768360239e0f26aa79 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Mon, 16 Oct 2017 19:59:23 +0200 Subject: [PATCH] Bug fixes on Twitter Cards --- bl-plugins/twitter-cards/plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bl-plugins/twitter-cards/plugin.php b/bl-plugins/twitter-cards/plugin.php index e95c08c9..2456406c 100644 --- a/bl-plugins/twitter-cards/plugin.php +++ b/bl-plugins/twitter-cards/plugin.php @@ -85,10 +85,10 @@ class pluginTwitterCards extends Plugin { // Get the image from the content $src = $this->getImage($content); if ($src!==false) { - $og['image'] = $src; + $data['image'] = $src; } else { if (Text::isNotEmpty($this->getValue('defaultImage'))) { - $og['image'] = $this->getValue('defaultImage'); + $data['image'] = $this->getValue('defaultImage'); } } }