Skip to content

feat: Modernize DokuWiki Discord Notifier Plugin #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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