Created
April 6, 2011 13:10
-
-
Save avoronkin/905608 to your computer and use it in GitHub Desktop.
Multiple fltr not working.
This file contains 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
<php? | |
//phpthumbof 1.1.0 | |
//Multiple fltr not working. Works only the last filter | |
//[[*photo:phpthumbof=`&fltr=gray&fltr=flip|y&w=100&h=100&zc=1`]] | |
//I changed snippet code from this | |
if (!empty($opt[0])) { | |
$ptOptions[$opt[0]] = $opt[1]; | |
} | |
//to this. Now filters are working. | |
if (!empty($opt[0])) { | |
if( substr($opt[0],0,4) == 'fltr'){ | |
$ptOptions['fltr'][] = $opt[1]; | |
} | |
else{ | |
$ptOptions[$opt[0]] = $opt[1]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment