diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-11-20 12:49:38 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-11-20 12:49:38 -0800 |
commit | 37368bda6591ccd0b69775c35599d6696f712c27 (patch) | |
tree | 50764efeccf4167710874ee33ff8c0de00fe8029 /include/text.php | |
parent | 7b459ec3558107a2f8ae685cd4ce847f74f821e6 (diff) | |
download | volse-hubzilla-37368bda6591ccd0b69775c35599d6696f712c27.tar.gz volse-hubzilla-37368bda6591ccd0b69775c35599d6696f712c27.tar.bz2 volse-hubzilla-37368bda6591ccd0b69775c35599d6696f712c27.zip |
change _newwin to _blank because the window named _newwin may be hard to find if you have lots of windows/tabs open.
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index 7c8834fc8..eb9171b40 100644 --- a/include/text.php +++ b/include/text.php @@ -1403,13 +1403,13 @@ function prepare_body(&$item,$attach = false) { // if original photo width is <= 640px prepend it to item body if($object['link'][0]['width'] && $object['link'][0]['width'] <= 640) { - $s = '<div class="inline-photo-item-wrapper"><a href="' . zid(rawurldecode($object['id'])) . '" target="_newwin"><img class="inline-photo-item" style="max-width:' . $object['link'][0]['width'] . 'px; width:100%; height:auto;" src="' . zid(rawurldecode($object['link'][0]['href'])) . '"></a></div>' . $s; + $s = '<div class="inline-photo-item-wrapper"><a href="' . zid(rawurldecode($object['id'])) . '" target="_blank"><img class="inline-photo-item" style="max-width:' . $object['link'][0]['width'] . 'px; width:100%; height:auto;" src="' . zid(rawurldecode($object['link'][0]['href'])) . '"></a></div>' . $s; } // if original photo width is > 640px make it a cover photo if($object['link'][0]['width'] && $object['link'][0]['width'] > 640) { $scale = ((($object['link'][1]['width'] == 1024) || ($object['link'][1]['height'] == 1024)) ? 1 : 0); - $photo = '<a href="' . zid(rawurldecode($object['id'])) . '" target="_newwin"><img style="max-width:' . $object['link'][$scale]['width'] . 'px; width:100%; height:auto;" src="' . zid(rawurldecode($object['link'][$scale]['href'])) . '"></a>'; + $photo = '<a href="' . zid(rawurldecode($object['id'])) . '" target="_blank"><img style="max-width:' . $object['link'][$scale]['width'] . 'px; width:100%; height:auto;" src="' . zid(rawurldecode($object['link'][$scale]['href'])) . '"></a>'; } } |