aboutsummaryrefslogtreecommitdiffstats
path: root/include/bb2diaspora.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-28 16:13:54 -0700
committerFriendika <info@friendika.com>2011-10-28 16:13:54 -0700
commitb02598185803e60b36b033ef3ccf05d1bd4d3af2 (patch)
tree1bdeea2968673b0e70003845308dfc67c275927a /include/bb2diaspora.php
parent2914ffb396259da2901ed261159eb51987b8d814 (diff)
downloadvolse-hubzilla-b02598185803e60b36b033ef3ccf05d1bd4d3af2.tar.gz
volse-hubzilla-b02598185803e60b36b033ef3ccf05d1bd4d3af2.tar.bz2
volse-hubzilla-b02598185803e60b36b033ef3ccf05d1bd4d3af2.zip
yet more diaspora images to scale
Diffstat (limited to 'include/bb2diaspora.php')
-rw-r--r--include/bb2diaspora.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index b03ead425..d5ce6a7d9 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -38,10 +38,12 @@ function scale_diaspora_images($s,$include_link = true) {
$ph->scaleImage(600);
$new_width = $ph->getWidth();
$new_height = $ph->getHeight();
+ logger('scale_diaspora_image: ' . $new_width . 'w ' . $new_height . 'h' . 'match: ' . $mtch[0], LOGGER_DEBUG);
$s = str_replace($mtch[0],'[img=' . $new_width . 'x' . $new_height. ']' . $mtch[1] . '[/img]'
. "\n" . ((! $include_link)
? '[url=' . $mtch[1] . ']' . t('view full size') . '[/url]' . "\n"
: ''),$s);
+ logger('scale_diaspora_image: new string: ' . $s, LOGGER_DEBUG);
}
}
}