coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: sott on February 04, 2007, 02:54:24 PM

Title: One / too much?
Post by: sott on February 04, 2007, 02:54:24 PM
Hi there,

just integrated coppermine-fetch 1.6.4 with the following code

<?php
include "./cpmfetch/cpmfetch.php";
$options = array('imagelink' => 'none');
$objCpm = new cpm("/coppermine");
$objCpm->cpm_viewRandomMedia(1,1,$options);
$objCpm->cpm_close();
?>

Everything works fine but there seems to be an little error, for example:

<img  src="/coppermine//albums/mygallery/thumb_IMG_1224.JPG" alt="IMG_1224.JPG" title="IMG_1224.JPG"  />

So the generated output is "coppermine//" instead of "coppermine/".

Thank you, keep up the good work...
Title: Re: One / too much?
Post by: vuud on February 04, 2007, 09:34:54 PM
Quote from: sott on February 04, 2007, 02:54:24 PM
Hi there,

just integrated coppermine-fetch 1.6.4 with the following code

<?php
include "./cpmfetch/cpmfetch.php";
$options = array('imagelink' => 'none');
$objCpm = new cpm("/coppermine");
$objCpm->cpm_viewRandomMedia(1,1,$options);
$objCpm->cpm_close();
?>


Everything works fine but there seems to be an little error, for example:

<img  src="/coppermine//albums/mygallery/thumb_IMG_1224.JPG" alt="IMG_1224.JPG" title="IMG_1224.JPG"  />

So the generated output is "coppermine//" instead of "coppermine/".

Thank you, keep up the good work...
Hi, thanks for reporting this.  Its a known issue that I believe is fixed in the development (soon-in-theory-to-be-released) version.

Forgot why it happens though