Link List (serendipity_plugin_linklist) with dtree

Creating and modifying plugins.
Post Reply
User avatar
erAck
Regular
Posts: 57
Joined: Mon Feb 16, 2015 2:20 am

Link List (serendipity_plugin_linklist) with dtree

Post by erAck » Sat Dec 09, 2017 9:15 pm

Hi,
Link List (serendipity_plugin_linklist) with dtree is not working. The cause is that serendipity_plugin_linklist.php:389 embeds it as

Code: Select all

            $str .= "\n".'<script type="text/javascript" src="'.$serendipity['serendipityHTTPPath'] . 'plugins/serendipity_event_linklist/lldtree.js"></script>'."\n";
but there is no lldtree.js in hat directory, there is dtree.js instead. The odd thing is that serendipity_event_linklist.php:359 within case 'external_plugin': has

Code: Select all

                        case 'lldtree.js': // name unique!
                            header('Content-Type: text/javascript');
                            echo file_get_contents(dirname(__FILE__).'/dtree.js');
                            break;
However, a symbolic link

Code: Select all

ln -s dtree.js lldtree.js
in the plugins/serendipity_event_linklist directory works around, but I don't consider that a real fix..

Post Reply