If we install this module in a SSL server, when prints a chart, some browsers shows a security warning.
This is because the image of Flash alternative content is taken from a non-SSL server. To fix it would have to modify the line 212 of file ofc_api.module:
if (empty($_SERVER['HTTPS'])) {
$url_image_alternative = 'http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif';
} else {
$url_image_alternative = 'https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif';
}
// Alternative content to display when Flash player is not installed
$alt_content = l(theme_image($url_image_alternative, 'Get Adobe Flash player', 'Get Adobe Flash player', null, false), 'http://www.adobe.com/go/getflashplayer', array('html' => TRUE));
Comments
Comment #1
Anzel commentedComment #2
FranciX commentedI have the same problem.
Thanks to solve it!
Comment #3
kong commentedThanks for the code Anzel.
Fixed in 6.x-1.2 (with a little different approach), haven't tested but it should work :)