From ba35d416083cd9d8526014bf7a763f5302cd41a3 Mon Sep 17 00:00:00 2001 From: Guy Van Sanden Date: Thu, 16 Apr 2026 16:12:35 +0200 Subject: [PATCH] v1.0.20 - exact checkout from f68dab2 --- appinfo/info.xml | 2 +- lib/AppInfo/Application.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index dcf5e6a..01cdcd4 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -4,7 +4,7 @@ Minimal Profile Hides profile fields to create a minimal user profile Allows administrators to hide profile fields like pronouns, social links, etc. - 1.0.19 + 1.0.20 AGPL Your Name MinimalProfile diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index b80e7d9..92a6bf3 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -20,12 +20,15 @@ class Application extends App implements IBootstrap { } public function register(IRegistrationContext $context): void { + // Register event listener - this fires on EVERY page render after template is built $context->registerEventListener( TemplateResponse::EVENT_LOAD_ADDITIONAL_SCRIPTS, function() { Util::addStyle('minimalprofile', 'minimalprofile'); } ); + + file_put_contents('/tmp/minimalprofile.log', date('Y-m-d H:i:s') . ' register, event registered' . "\n", FILE_APPEND); } public function boot(IBootContext $context): void {