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 {