Skip to content

Editor image lists are built in two places with different rules #340

Closed

Description

@somethingwithproof

get_imagelist() in lib/editor.inc.php and wm_asset_image_list() in lib/editor.assets.php both scan images/objects and images/backgrounds, but with slightly different acceptance rules. One returns raw relative paths; the other returns metadata with rawurlencoded URLs. The editor page then adds paths from the map config (used_images) and sends raw paths as preview sources. A single scanner returning {kind, name, url, path} would give the server and the editor's wmEditorImageSrc() one contract.

Activity

  1. somethingwithproof commented on Nov 11, 2026

    @somethingwithproof
    MemberAuthor

    Fixed by #341.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions