feat: Add Traditional Chinese language file & fix: Resolve all PHP warnings and modernize for DokuWiki 2025-05-14a compatibility#80
Open
tryweb wants to merge 4 commits into
Open
Conversation
…compatibility - Fix undefined array key warnings in $_SERVER and $_REQUEST access across all files - Fix undefined property warnings in browser detection objects - Replace deprecated functions with modern DokuWiki 2025 APIs: - dbglog() → \dokuwiki\Logger::debug() - DokuHTTPClient → \dokuwiki\HTTP\DokuHTTPClient - utf8_* functions → \dokuwiki\Utf8\* namespace equivalents - Implement defensive programming with isset() checks for all array access - Fix database query result validation in StatisticsQuery class - Resolve "A non-numeric value encountered" errors in chart generation: - Add three-layer data validation system for pChart library - Implement comprehensive numeric type casting and validation - Fix pie chart "other" key initialization issues - Add DataSet reconstruction for XY plot graphs - Remove deprecated require_once() calls in favor of autoloading - Update error logging to use modern structured logging - Ensure backward compatibility while modernizing codebase - Add enterprise-grade error handling and data sanitization All PHP E_WARNING errors eliminated, plugin now fully compatible with DokuWiki 2025-05-14a "Librarian" with zero warnings or deprecated function calls.
- Add validation in PieChart::drawBasicPieGraph() to check for $PieSum == 0 - When all pie chart data sums to zero, set appropriate SpliceRatio and SplicePercent values - Enhance data validation in StatisticsGraph::PieChart() to handle zero-sum datasets - Replace zero-sum data with single "No Data" entry to prevent chart rendering issues - Resolves DivisionByZeroError at PieChart.php:181 when statistics contain no data Fixes: Statistics plugin crashes when generating charts with empty/zero data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces a new language file for Traditional Chinese. This file will provide translations for the user interface and any relevant text within the application.