summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2010-01-29 00:30:05 +0000
committerChristian Schneider2010-01-29 00:30:05 +0000
commit4a032b0a5ee90d3ec30b9be70cd89a15fc3f0b70 (patch)
tree7bbc83c13a92e5339607a82b53645f3650eb78bd
parent4b473ef5045dc6883dd3fda1543a3ce2e2ba77fa (diff)
downloaditools-4a032b0a5ee90d3ec30b9be70cd89a15fc3f0b70.tar.gz
itools-4a032b0a5ee90d3ec30b9be70cd89a15fc3f0b70.tar.bz2
itools-4a032b0a5ee90d3ec30b9be70cd89a15fc3f0b70.zip
Convert it.class back to old syntax
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 7254fea..7a15e08 100644
--- a/it.class
+++ b/it.class
@@ -522,7 +522,7 @@ static function imageconvert($p)
list(, $type) = explode(' ', strtolower(it::exec('identify 2>/dev/null {in}', $p))); # for things like eps
}
- $type = strtr($type, "jpeg" => "jpg", "tiff" => "tif", "ps" => "eps", "ept" => "eps");
+ $type = strtr($type, array("jpeg" => "jpg", "tiff" => "tif", "ps" => "eps", "ept" => "eps"));
$p += array('type' => $type, 'types' => "bmp,eps,gif,jp2,jpg,png,svg,tif");
$p['-opts'] = array('-thumbnail' => $p['size']) + (array)$p['-opts'];