Skip to content

Improve helper's error reporting #57

@gBokiau

Description

@gBokiau

Currently, when MediaHelper doesn't find an image, it returns an empty string without any further warning (even when debug is on).
When the 'media' folder is missing or wrongly configured, the Helper outputs a php notice: 'Undefined variable: dirname'

I think it would be a benefit for usability to have more helpful error reporting for these kinds of errors.

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