Permalink
Browse files

Fixes the default ratio for the image cropper

  • Loading branch information...
1 parent 330c6bb commit 2fa924146be62fcd45f2f171d48a44c44645f31e @kolber committed Apr 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 extensions/twig-extensions.inc.php
@@ -100,7 +100,7 @@ function get($url, $current_url = '') {
#
# shortcut to generate the image resize path from a full image path
#
- function resize_path($img_path, $max_width = '100', $max_height = '100', $ratio = 0, $quality = 100) {
+ function resize_path($img_path, $max_width = '100', $max_height = '100', $ratio = '1:1', $quality = '100') {
$root_path = preg_replace('/content\/.*/', '', $img_path);
$clean_path = preg_replace('/^(\.+\/)*content/', '', $img_path);

0 comments on commit 2fa9241

Please sign in to comment.