From 332cf0e16d6be70d02486ea055da8d1ad8e0a357 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 1 Jul 2021 16:29:44 +0200 Subject: [PATCH] Fix serendipity_event_linklist serialisation (#129) * Fix serendipity_event_linklist serialisation Instead of the link list the output was [object Object] because 'd' is an object in document.write(d). Use dTree.toString() for serialisation. * Bump version and ChangeLog --- serendipity_event_linklist/ChangeLog | 5 +++++ serendipity_event_linklist/serendipity_event_linklist.php | 4 ++-- serendipity_event_linklist/serendipity_plugin_linklist.php | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/serendipity_event_linklist/ChangeLog b/serendipity_event_linklist/ChangeLog index 3ebc59fd..41753983 100644 --- a/serendipity_event_linklist/ChangeLog +++ b/serendipity_event_linklist/ChangeLog @@ -1,3 +1,8 @@ +2.06 && 1.26: +------------- + + * Fix link list serialisation + 2.05 && 1.25: ------------- diff --git a/serendipity_event_linklist/serendipity_event_linklist.php b/serendipity_event_linklist/serendipity_event_linklist.php index c3c325ce..a6da84f9 100644 --- a/serendipity_event_linklist/serendipity_event_linklist.php +++ b/serendipity_event_linklist/serendipity_event_linklist.php @@ -25,7 +25,7 @@ class serendipity_event_linklist extends serendipity_event 'external_plugin' => true )); $propbag->add('author', 'Matthew Groeninger, Omid Mottaghi Rad'); - $propbag->add('version', '2.05'); + $propbag->add('version', '2.06'); $propbag->add('requirements', array( 'serendipity' => '1.6', 'smarty' => '2.6.7', @@ -854,4 +854,4 @@ class serendipity_event_linklist extends serendipity_event } /* vim: set sts=4 ts=4 expandtab : */ -?> \ No newline at end of file +?> diff --git a/serendipity_event_linklist/serendipity_plugin_linklist.php b/serendipity_event_linklist/serendipity_plugin_linklist.php index 4add10f2..49dfb7d8 100644 --- a/serendipity_event_linklist/serendipity_plugin_linklist.php +++ b/serendipity_event_linklist/serendipity_plugin_linklist.php @@ -18,7 +18,7 @@ class serendipity_plugin_linklist extends serendipity_plugin $propbag->add('description', PLUGIN_LINKS_BLAHBLAH); $propbag->add('stackable', true); $propbag->add('author', 'Matthew Groeninger, Omid Mottaghi Rad'); - $propbag->add('version', '1.25'); + $propbag->add('version', '1.26'); $propbag->add('stackable', false); $propbag->add('configuration', array( 'title', @@ -431,7 +431,7 @@ class serendipity_plugin_linklist extends serendipity_plugin } } - $str .= 'document.write(d); + $str .= 'document.write(d.toString()); //--> ';