Open tanguy2m opened 8 years ago
Dans ws.inc.php, remplacer:
ws.inc.php
$derivatives = $service -> invoke("pwg.getFullMissingDerivatives", array( 'types' => $types, 'custom_width' => 9999, 'custom_height' => $conf['GThumb']['height'], 'ids' => $image_id ));
Par:
global $conf; $conf['question_mark_in_urls'] = $conf['php_extension_in_urls'] = true; $conf['derivative_url_style'] = 2; //script $result = pwg_query('SELECT id, path, representative_ext, width, height, rotation FROM '.IMAGES_TABLE.' WHERE id='.$image_id); $src_image = new SrcImage(pwg_db_fetch_assoc($result)); if ($src_image->is_mimetype()) continue; $derivative = new DerivativeImage(ImageStdParams::get_custom(9999, $conf['GThumb']['height']), $src_image); return array('urls' => array($derivative->get_url().'&b='.time()));
et récupération des autres urls via le ws standard
Dans
ws.inc.php
, remplacer:Par:
et récupération des autres urls via le ws standard