silverstripe/sapphire — pull request #98 by oddnoc (2011-10-31 18:48:55+00:00)
Title: Delete formatted images fixes (Image)

Here we go, this time with feeling.

- branched from master
- provided a test & fixture entry

Fixes 2 problems in Image->deleteFormattedImages()
1. Now calls allMethodNames(true) so that image extensions that provide image generators will have their generated images deleted
2. Properly regex-quotes strings that will be interpolated/concatenated into a regex for preg_match.