Created
March 1, 2012 11:44
-
-
Save co3k/1949225 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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