From 4b08899288a29ca2c76236b4d8b66221599c57c0 Mon Sep 17 00:00:00 2001 From: Matthias Gutjahr Date: Tue, 4 Sep 2018 11:02:29 +0200 Subject: [PATCH] Fix PHP warning caused by typo in template PHP Warning: A non-numeric value encountered in .../templates_c/2k11/58/d3/09/58d3091bbe2ae7a94064de04db8831bdf8787fa0_0.file.oembed.tpl.php on line 42 --- serendipity_event_oembed/ChangeLog | 7 +++++-- serendipity_event_oembed/oembed.tpl | 2 +- serendipity_event_oembed/serendipity_event_oembed.php | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/serendipity_event_oembed/ChangeLog b/serendipity_event_oembed/ChangeLog index f09df085..c2eb02cb 100644 --- a/serendipity_event_oembed/ChangeLog +++ b/serendipity_event_oembed/ChangeLog @@ -1,7 +1,10 @@ +Version 1.15 +----------------------- +* Fixed PHP warning caused by typo in template + Version 1.14 ------------- - -Added legal gdpr/dsgvo info +* Added legal gdpr/dsgvo info Version 1.13 ----------------------- diff --git a/serendipity_event_oembed/oembed.tpl b/serendipity_event_oembed/oembed.tpl index c1bc6436..35d45a21 100644 --- a/serendipity_event_oembed/oembed.tpl +++ b/serendipity_event_oembed/oembed.tpl @@ -5,7 +5,7 @@
{$oembed.html}
{elseif $oembed.provider_name=="IMDB"} {* beautify noembed.com IMDB content *}
{$oembed.html|replace:"

":""|replace:"

":""|replace:" -{elseif $oembed.provider-name=="Soundcloud"} {* beautify SoundCloud *} +{elseif $oembed.provider_name=="Soundcloud"} {* beautify SoundCloud *} {$oembed.html|replace:"":"
"} {else} {$oembed.html} diff --git a/serendipity_event_oembed/serendipity_event_oembed.php b/serendipity_event_oembed/serendipity_event_oembed.php index f01fd0fd..62a7783b 100644 --- a/serendipity_event_oembed/serendipity_event_oembed.php +++ b/serendipity_event_oembed/serendipity_event_oembed.php @@ -30,7 +30,7 @@ class serendipity_event_oembed extends serendipity_event $propbag->add('description', PLUGIN_EVENT_OEMBED_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Grischa Brockhaus'); - $propbag->add('version', '1.13'); + $propbag->add('version', '1.15'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7',