Skip to content

Commit

Permalink
fix: undefined class on diff module which should check the class on g…
Browse files Browse the repository at this point in the history
…lobal namespace
  • Loading branch information
selul committed May 28, 2019
1 parent f7395c8 commit df6bb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private function generate_diff( $product, $files, $recurse = false ) {

// fetch the calculated hashes.
if ( ! $wp_filesystem->is_readable( $path . '/' . self::HASH_FILE ) ) {
return new WP_Error( 'themeisle_sdk_hash_not_found', sprintf( '%s not found', self::HASH_FILE ) );
return new \WP_Error( 'themeisle_sdk_hash_not_found', sprintf( '%s not found', self::HASH_FILE ) );
}

$hashes = json_decode( $wp_filesystem->get_contents( $path . '/' . self::HASH_FILE ), true );
Expand Down

0 comments on commit df6bb12

Please sign in to comment.