Skip to content

Instantly share code, notes, and snippets.

@avoronkin
Created April 6, 2011 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avoronkin/905608 to your computer and use it in GitHub Desktop.
Save avoronkin/905608 to your computer and use it in GitHub Desktop.
Multiple fltr not working.
<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