aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/photos.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/photos.php b/include/photos.php
index 967acf955..6ee57ba39 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -263,8 +263,8 @@ function photo_upload($channel, $observer, $args) {
$r0 = $ph->save($p);
$url[0] = array(
- 'rel' => 'alternate',
- 'type' => $type,
+ 'type' => 'Link',
+ 'mediaType' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-0.' . $ph->getExt(),
'width' => $width,
'height' => $height
@@ -282,8 +282,8 @@ function photo_upload($channel, $observer, $args) {
$r1 = $ph->storeThumbnail($p, PHOTO_RES_1024);
$url[1] = array(
- 'rel' => 'alternate',
- 'type' => $type,
+ 'type' => 'Link',
+ 'mediaType' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-1.' . $ph->getExt(),
'width' => $ph->getWidth(),
'height' => $ph->getHeight()
@@ -296,8 +296,8 @@ function photo_upload($channel, $observer, $args) {
$r2 = $ph->storeThumbnail($p, PHOTO_RES_640);
$url[2] = array(
- 'rel' => 'alternate',
- 'type' => $type,
+ 'type' => 'Link',
+ 'mediaType' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-2.' . $ph->getExt(),
'width' => $ph->getWidth(),
'height' => $ph->getHeight()
@@ -310,8 +310,8 @@ function photo_upload($channel, $observer, $args) {
$r3 = $ph->storeThumbnail($p, PHOTO_RES_320);
$url[3] = array(
- 'rel' => 'alternate',
- 'type' => $type,
+ 'type' => 'Link',
+ 'mediaType' => $type,
'href' => z_root() . '/photo/' . $photo_hash . '-3.' . $ph->getExt(),
'width' => $ph->getWidth(),
'height' => $ph->getHeight()