[Plugin: NextGEN Gallery] ssl fix for nextgen
-
Hello. I’m hoping that you can patch nextgen to fix a slight bug (more of an oversight)
Nextgen breaks when under SSL.
lib/swfobject.php
adding a quick if statement fixes this issue. If you can just put this if statement above the embed line. That would be awesome and I wouldn’t have to keep fixing this when people upgrade nextgen.
if(!empty($_SERVER[“HTTPS”])) {
$swfUrl = str_replace(“http:”, “https:”, $swfUrl);
}$this->embedSWF = ‘swfobject.embedSWF(“‘. $swfUrl .'”, “‘. $this->id .'”, “‘. $width .'”, “‘. $height .'”, “‘. $version .'”, ‘. $expressInstallSwfurl .’, this.flashvars, this.params , this.attr );’ . “\n”;
- The topic ‘[Plugin: NextGEN Gallery] ssl fix for nextgen’ is closed to new replies.