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
This commit is contained in:
Eike Rathke 2021-07-01 16:29:44 +02:00 committed by GitHub
parent 8e5f5380bc
commit 332cf0e16d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2.06 && 1.26:
-------------
* Fix link list serialisation
2.05 && 1.25:
-------------

View file

@ -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 : */
?>
?>

View file

@ -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());
//-->
</script>';