add http urls to embedded photos from album

This commit is contained in:
Mike Macgirvin 2024-06-17 05:37:21 +10:00
parent bf6be045f6
commit effcc661b0

View file

@ -158,8 +158,9 @@ class Embedphotos extends Controller
$url = $url . '?token=' . $token;
}
$output .= '[zmg width="' . $image['width'] . '" height="' . $image['height'] . '" ' . "\n\n" . $alt . "\n\n" . ']'
. $url . '[/zmg]' . "\n\n";
$output .= '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $image['resource_id'] . ']'
. '[zmg width="' . $image['width'] . '" height="' . $image['height'] . '" ' . "\n\n" . $alt . "\n\n" . ']'
. $url . '[/zmg][/zrl]' . "\n\n";
}
}
}