Skip to content

Conversation

@mprins
Copy link
Contributor

@mprins mprins commented Dec 28, 2025

fixes #198
fixes #210

Copilot AI review requested due to automatic review settings December 28, 2025 14:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request attempts to fix issue #198, which reports "Array to string conversion" warnings in metadata.php when loading pages with galleries. The fix modifies how image data is passed to DokuWiki's renderer methods by using the spread operator to unpack array values.

Key Changes:

  • Modified externallink() call to unpack $imgdata array values using spread operator
  • Modified internalmedia() call to unpack $imgdata array values using spread operator

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mprins and others added 2 commits December 28, 2025 20:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

Error on using Gallery with Wrap Warning: Array to string conversion in [path]/metadata.php on line 618

1 participant