Skip to content

Commit

Permalink
Fix wrong method name
Browse files Browse the repository at this point in the history
Note to self, always verify autocompletion..
  • Loading branch information
JoryHogeveen authored Dec 24, 2024
1 parent 1ee5447 commit 4e42476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/MediaGalleryProcessorPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function fetchImageContentFromPath( $path )
$file = $base . ltrim( $path, '/' );
$fs = $this->objectManager->get( Filesystem\DriverInterface::class );

if ( ! $fs->exists( $file ) ) {
if ( ! $fs->isFile( $file ) ) {
throw new InputException( __( 'SyncEngine: File does not exist: ' . $file ) );
}

Expand Down

0 comments on commit 4e42476

Please sign in to comment.