Skip to content

Commit

Permalink
Target a new window for image links too.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 6, 2014
1 parent 8233a61 commit 9e27c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde/lib/Ajax/Application/TwitterHandler.php
Expand Up @@ -157,7 +157,7 @@ protected function _buildTweet($tweet)
}
if (!empty($tweet->entities->media)) {
foreach ($tweet->entities->media as $picture) {
$replace = '<a href="' . $picture->url . '" title="' . $picture->expanded_url . '">' . htmlentities($picture->display_url, ENT_COMPAT, 'UTF-8') . '</a>';
$replace = '<a target="_blank" href="' . $picture->url . '" title="' . $picture->expanded_url . '">' . htmlentities($picture->display_url, ENT_COMPAT, 'UTF-8') . '</a>';
$map[$picture->indices[0]] = array($picture->indices[1], $replace);
$previews[] = ' <a href="#" onclick="return Horde[\'twitter' . $instance . '\'].showPreview(\'' . $picture->media_url . ':small\');"><img src="' . Horde_Themes::img('mime/image.png') . '" /></a>';
}
Expand Down

0 comments on commit 9e27c58

Please sign in to comment.