Skip to content

[Media Module] GET api/media/all returns error #477

@darron1217

Description

@darron1217

Summary of issue

Non-static method Modules\\Media\\Image\\Imagy::getThumbnail() should not be called statically
This error message returned from all() method in Api\MediaController

return '<img src="' . Imagy::getThumbnail($file->path, 'smallThumb') . '"/>';

Imagy::getThumbnail($file->path, 'smallThumb')
should be changed into
$this->imagy->getThumbnail($file->path, 'smallThumb')

Steps to reproduce

System Details

  • Operating System
  • PHP Version
  • Laravel Version
  • Asgardcms/Platform version

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