From caa32f71b77112ef7121e91ea49879979d456b9e Mon Sep 17 00:00:00 2001 From: onli Date: Fri, 21 Jan 2022 16:14:05 +0100 Subject: [PATCH] social 0.14.6: Fix disappearing share buttons --- serendipity_event_social/ChangeLog | 4 ++++ serendipity_event_social/serendipity_event_social.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/serendipity_event_social/ChangeLog b/serendipity_event_social/ChangeLog index 8a4a4873..fba0d447 100644 --- a/serendipity_event_social/ChangeLog +++ b/serendipity_event_social/ChangeLog @@ -1,3 +1,7 @@ +0.14.6 + * Fix: Social share buttons were sometimes missing + on the entry page + 0.14.5 * Avoid PHP 8 warning warning about missing view key in entry preview diff --git a/serendipity_event_social/serendipity_event_social.php b/serendipity_event_social/serendipity_event_social.php index ad008b80..e209c2bc 100644 --- a/serendipity_event_social/serendipity_event_social.php +++ b/serendipity_event_social/serendipity_event_social.php @@ -16,7 +16,7 @@ class serendipity_event_social extends serendipity_event { $propbag->add('description', PLUGIN_EVENT_SOCIAL_DESC); $propbag->add('stackable', false); $propbag->add('author', 'onli, Matthias Mees, Thomas Hochstein'); - $propbag->add('version', '0.14.5'); + $propbag->add('version', '0.14.6'); $propbag->add('requirements', array( 'serendipity' => '2.0' )); @@ -133,7 +133,7 @@ class serendipity_event_social extends serendipity_event { if (isset($hooks[$event])) { switch($event) { case 'frontend_display:html:per_entry': - if ($serendipity['view'] ?? '' != 'entry') { + if (($serendipity['view'] ?? '') != 'entry') { if (! serendipity_db_bool($this->get_config('overview', true))) { // We are in overview mode and the user opted to not show the button return true;