Skip to content

Commit 6034082

Browse files
committed
boolean error
1 parent 89edbee commit 6034082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Widget/Twig/TwigPreprocessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function preprocessEventDetail(Event $event, string $langcode, array $set
355355
$shareQuery['origin'] = $_GET['origin'];
356356
}
357357

358-
if ($this->disableSocialSharing) {
358+
if (!$this->disableSocialSharing) {
359359
$variables['share_links'] = [
360360
'facebook' => 'https://www.facebook.com/sharer/sharer.php?u=' . urlencode($shareUrl->__toString()),
361361
'twitter' => 'https://twitter.com/intent/tweet?text=' . urlencode($shareUrl->__toString()),

0 commit comments

Comments
 (0)