Phoca Map in ssl pages

Phoca Maps - displaying maps in Joomla! CMS
Erik66
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 13 May 2014, 18:02

Phoca Map in ssl pages

Post by Erik66 »

Hello,

I tried using PhocaMaps in a site which works with ssl. Initially the maps(s) will not show. I found it would not load the google a[pi file using https. In file

/administrator/components/com_phocamaps/helpers/phocamapsmap.php

on line 65 and further it says

65 function loadAPI( $src = 'jsapi', $ssl = 0) {
66 $document = JFactory::getDocument();
67 if ($ssl == 1) {
68 $scriptLink = 'https://www.google.com/'.$src;
69 } else {
70 $scriptLink = 'https://www.google.com/'.$src;
71 }

which is, if I interpret it correctly, harcoded to force the component to not use SSL. Once I change line 65 to


65 function loadAPI( $src = 'jsapi', $ssl = 1) {

the PhocaMaps apper on this ssl coded page.

Best regards from

Erik
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Map in ssl pages

Post by Jan »

Hi,
which is, if I interpret it correctly, harcoded to force the component to not use SSL. Once I change line 65 to
no, it is exactly opposite. It is not hardcoded, it takes the information from parameters. So just set it in Options.

Jan
If you find Phoca extensions useful, please support the project
Post Reply