diff --git a/main.inc.php b/main.inc.php index f486469..6b26694 100644 --- a/main.inc.php +++ b/main.inc.php @@ -1,7 +1,7 @@ get_id() !== 'menubar') + { + return; + } + + $block = $menu->get_block('mbMenu'); + if ($block === null) + { + return; + } + + if (!is_array($block->data)) + { + $block->data = array(); + } + + $block->data['bratonien_customer_qr'] = array( + 'TITLE' => 'QR-Code hochladen', + 'NAME' => 'QR-Code hochladen', + 'URL' => get_root_url().'plugins/'.BRATONIEN_TOOLS_ID.'/customer-qr-upload.php', + ); +} + function bratonien_tools_prepare_connector_private_import() { global $conf;