aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-27 15:20:06 +0000
committerMario <mario@mariovavti.com>2021-06-27 15:20:06 +0000
commit3f6b6dfaf3ea8fbb2845d3f3c40e00a0e6d3ce06 (patch)
tree54a64c9d01da16db29c320606b799ff0f7df9f44 /include/photos.php
parentd3d4dee36a200fc318370cba977025e109a84370 (diff)
downloadvolse-hubzilla-3f6b6dfaf3ea8fbb2845d3f3c40e00a0e6d3ce06.tar.gz
volse-hubzilla-3f6b6dfaf3ea8fbb2845d3f3c40e00a0e6d3ce06.tar.bz2
volse-hubzilla-3f6b6dfaf3ea8fbb2845d3f3c40e00a0e6d3ce06.zip
fix regression in relation with recent photo changes
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/photos.php b/include/photos.php
index a783875bb..cfa29a253 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -259,7 +259,7 @@ function photo_upload($channel, $observer, $args) {
if($args['description'])
$p['description'] = $args['description'];
- $link = array();
+ $url = [];
$r0 = $ph->save($p);
$url[0] = array(
@@ -360,14 +360,14 @@ function photo_upload($channel, $observer, $args) {
if($large_photos) {
$scale = 1;
- $width = $link[1]['width'];
- $height = $link[1]['height'];
+ $width = $url[1]['width'];
+ $height = $url[1]['height'];
$tag = (($r1) ? '[zmg=' . $width . 'x' . $height . ']' : '[zmg]');
}
else {
$scale = 2;
- $width = $link[2]['width'];
- $height = $link[2]['height'];
+ $width = $url[2]['width'];
+ $height = $url[2]['height'];
$tag = (($r2) ? '[zmg=' . $width . 'x' . $height . ']' : '[zmg]');
}