Skip to content

Conversation

@tryweb
Copy link

@tryweb tryweb commented Jun 30, 2025

This commit introduces several modernizations to the DokuWiki Discord Notifier plugin:

Removed obsolete DOKU_INC definition check in helper.php to align with modern DokuWiki loading mechanisms. Replaced $_SERVER['REMOTE_USER'] with $INPUT->server->str('REMOTE_USER') in helper.php for safer and type-aware access to server variables, adhering to DokuWiki's $INPUT global object best practices. These changes ensure better compatibility with DokuWiki 2025-05-14a "Librarian" and improve adherence to modern PHP development standards.

This commit introduces several modernizations to the DokuWiki Discord Notifier plugin:

Removed obsolete DOKU_INC definition check in helper.php to align with modern DokuWiki loading mechanisms.
Replaced $_SERVER['REMOTE_USER'] with $INPUT->server->str('REMOTE_USER') in helper.php for safer and type-aware access to server variables, adhering to DokuWiki's $INPUT global object best practices.
These changes ensure better compatibility with DokuWiki 2025-05-14a "Librarian" and improve adherence to modern PHP development standards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant