Phoca Map in ssl pages
Posted: 20 May 2014, 00:47
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
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