photo objects: incorrect media type on links
This commit is contained in:
parent
9def9a5cb7
commit
60c003733e
@ -261,7 +261,7 @@ function photo_upload($channel, $observer, $args) {
|
|||||||
$r0 = $ph->save($p);
|
$r0 = $ph->save($p);
|
||||||
$link[0] = array(
|
$link[0] = array(
|
||||||
'rel' => 'alternate',
|
'rel' => 'alternate',
|
||||||
'type' => 'text/html',
|
'type' => $type,
|
||||||
'href' => z_root() . '/photo/' . $photo_hash . '-0.' . $ph->getExt(),
|
'href' => z_root() . '/photo/' . $photo_hash . '-0.' . $ph->getExt(),
|
||||||
'width' => $width,
|
'width' => $width,
|
||||||
'height' => $height
|
'height' => $height
|
||||||
@ -280,7 +280,7 @@ function photo_upload($channel, $observer, $args) {
|
|||||||
$r1 = $ph->storeThumbnail($p, PHOTO_RES_1024);
|
$r1 = $ph->storeThumbnail($p, PHOTO_RES_1024);
|
||||||
$link[1] = array(
|
$link[1] = array(
|
||||||
'rel' => 'alternate',
|
'rel' => 'alternate',
|
||||||
'type' => 'text/html',
|
'type' => $type,
|
||||||
'href' => z_root() . '/photo/' . $photo_hash . '-1.' . $ph->getExt(),
|
'href' => z_root() . '/photo/' . $photo_hash . '-1.' . $ph->getExt(),
|
||||||
'width' => $ph->getWidth(),
|
'width' => $ph->getWidth(),
|
||||||
'height' => $ph->getHeight()
|
'height' => $ph->getHeight()
|
||||||
@ -294,7 +294,7 @@ function photo_upload($channel, $observer, $args) {
|
|||||||
$r2 = $ph->storeThumbnail($p, PHOTO_RES_640);
|
$r2 = $ph->storeThumbnail($p, PHOTO_RES_640);
|
||||||
$link[2] = array(
|
$link[2] = array(
|
||||||
'rel' => 'alternate',
|
'rel' => 'alternate',
|
||||||
'type' => 'text/html',
|
'type' => $type,
|
||||||
'href' => z_root() . '/photo/' . $photo_hash . '-2.' . $ph->getExt(),
|
'href' => z_root() . '/photo/' . $photo_hash . '-2.' . $ph->getExt(),
|
||||||
'width' => $ph->getWidth(),
|
'width' => $ph->getWidth(),
|
||||||
'height' => $ph->getHeight()
|
'height' => $ph->getHeight()
|
||||||
@ -308,7 +308,7 @@ function photo_upload($channel, $observer, $args) {
|
|||||||
$r3 = $ph->storeThumbnail($p, PHOTO_RES_320);
|
$r3 = $ph->storeThumbnail($p, PHOTO_RES_320);
|
||||||
$link[3] = array(
|
$link[3] = array(
|
||||||
'rel' => 'alternate',
|
'rel' => 'alternate',
|
||||||
'type' => 'text/html',
|
'type' => $type,
|
||||||
'href' => z_root() . '/photo/' . $photo_hash . '-3.' . $ph->getExt(),
|
'href' => z_root() . '/photo/' . $photo_hash . '-3.' . $ph->getExt(),
|
||||||
'width' => $ph->getWidth(),
|
'width' => $ph->getWidth(),
|
||||||
'height' => $ph->getHeight()
|
'height' => $ph->getHeight()
|
||||||
|
Reference in New Issue
Block a user