Hi,
I noticed that my website contains the following script at the BEGINNING of the source code instead of the usual <html> tag.
Looked at various themes but didn't make a difference. What is wrong and how to fix it?
piwigo 16.4.0
Klaus
<script>(function(){
var _logUrl="plugins\/ip_location\/ajax_log.php";
document.addEventListener('DOMContentLoaded',function(){
if(typeof PhotoSwipe==='undefined') return;
var _O=PhotoSwipe;
window.PhotoSwipe=function(el,ui,items,opts){
var inst=new _O(el,ui,items,opts);
function doLog(item){
if(!item||!item.href) return;
var x=new XMLHttpRequest();
x.open('GET',_logUrl+'?url='+encodeURIComponent(item.href),true);
x.send();
}
// Première photo affichée
inst.listen('initialZoomInEnd',function(){ doLog(inst.currItem); });
// Navigation vers une autre photo
inst.listen('afterChange',function(){ doLog(inst.currItem); });
return inst;
};
});
})();
</script>