From 420ec47a512a98981fedd1c1ef86baee5ec11c52 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Sat, 5 Sep 2026 15:56:32 +0200 Subject: [PATCH] Expose customer QR upload in public Piwigo menu --- main.inc.php | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) 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;