Board index Plugins Link List (serendipity_plugin_linklist) with dtree

Creating and modifying plugins.
User avatar
Posts: 31
Joined: Mon Feb 16, 2015 2:20 am

Postby erAck » Sat Dec 09, 2017 9:15 pm

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');

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..
Running s9y at

Return to Plugins

Who is online

Users browsing this forum: No registered users and 2 guests