summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-07-10 01:43:06 +0000
committerDries Buytaert <dries@buytaert.net>2010-07-10 01:43:06 +0000
commitb7be0bd1843990030d83a468426816a99337a216 (patch)
tree1e2348f1c7179d7eeadbf3586ab741e1db1d00cb
parent0c993fd704dab80a845602a878bd612e9216b137 (diff)
downloadbrdo-b7be0bd1843990030d83a468426816a99337a216.tar.gz
brdo-b7be0bd1843990030d83a468426816a99337a216.tar.bz2
- Patch #818686 by CrookedNumber: hyphens in style names cause paths that point to non-existent derivative images.
-rw-r--r--modules/image/image.field.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/image/image.field.inc b/modules/image/image.field.inc
index f41df500f..9e276af76 100644
--- a/modules/image/image.field.inc
+++ b/modules/image/image.field.inc
@@ -465,7 +465,7 @@ function image_field_formatter_view($entity_type, $entity, $field, $instance, $l
// Check if the formatter involves a particular image style.
$matches = array();
- if (preg_match('/__([a-z0-9_]+)/', $display['type'], $matches)) {
+ if (preg_match('/__([a-z0-9_-]+)/', $display['type'], $matches)) {
$image_style = $matches[1];
}