Skip to content

Instantly share code, notes, and snippets.

@co3k co3k/gist:1949225
Created Mar 1, 2012

Embed
What would you like to do?
diff --git a/plugins/sfImageHandlerPlugin/lib/helper/sfImageHelper.php b/plugins/sfImageHandlerPlugin/lib/helper/sfImageHelper.php
index d95785d..04845b7 100644
--- a/plugins/sfImageHandlerPlugin/lib/helper/sfImageHelper.php
+++ b/plugins/sfImageHandlerPlugin/lib/helper/sfImageHelper.php
@@ -71,7 +71,7 @@ function sf_image_path($filename, $options = array(), $absolute = false)
}
else
{
- $parts = explode('_', $filename);
+ $parts = explode('_', strtr($filename, '.', '_'));
$f = array_pop($parts);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.