Skip to content

Instantly share code, notes, and snippets.

@filiphazardous
Last active December 15, 2017 12:02
Show Gist options
  • Save filiphazardous/fb1bb0fec370b8c2964a22a67b98cd4a to your computer and use it in GitHub Desktop.
Save filiphazardous/fb1bb0fec370b8c2964a22a67b98cd4a to your computer and use it in GitHub Desktop.
diff -ru a/src/Normalizer/FileEntityNormalizer.php b/file_entity/src/Normalizer/FileEntityNormalizer.php
--- a/src/Normalizer/FileEntityNormalizer.php
+++ b/src/Normalizer/FileEntityNormalizer.php
@@ -48,6 +48,7 @@
else {
throw new \RuntimeException(SafeMarkup::format('Failed to write @filename.', array('@filename' => $entity->getFilename())));
}
+ $entity->status = FILE_STATUS_PERMANENT;
return $entity;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment