Hello
I have written an own plugin.
Everything works fine except for the mediamanager.
If i open the mediamanager i cannot see any of the thumbnails.
If i try to upload some new pictures, apache crashs.
After some experimenting around, i figured out that this code snippet causes the error:
If you place this under /lib/plugins/lfs/action.php
And open the mediamanager and upload a new picture to wiki:
Could someone please test this? And does someone see my mistake?
Thanks
<?php
/**
* Example Action Plugin: Inserts a button into the toolbar
*
*/
if (!defined('DOKU_INC')) die();
class action_plugin_lfs extends DokuWiki_Action_Plugin {
// Register the eventhandlers
function register(Doku_Event_Handler $controller) {
$controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ());
}
public function insert_button(Doku_Event $event, $param) {
$event->data[] = array (
'type' => 'mediapopup',
'title' => 'Link zu Dateien auf dem Netzlaufwerk',
'icon' => '../../plugins/lfs/buttonlink.png',
'url' => '../lib/plugins/lfs/browser.php?useless=',
'name' => 'winsharelink',
'options'=> 'width=750,height=500,left=20,top=20,scrollbars=yes,resizable=yes',
'block' => false,
);
}
}
?>