Fixed : Photo download for multiserver
This commit is contained in:
parent
74acdd9114
commit
3441f115eb
1 changed files with 12 additions and 0 deletions
|
@ -2392,8 +2392,20 @@ class CBPhotos
|
|||
{
|
||||
|
||||
$file = $this->ready_photo_file($key);
|
||||
|
||||
if($file)
|
||||
{
|
||||
|
||||
if($file['details']['server_url'])
|
||||
{
|
||||
$url = dirname(dirname($file['details']['server_url']));
|
||||
header('location:'.$url.'/download_photo.php?file='.$file['details']['filename']
|
||||
.'.'.$file['details']['ext'].'&folder='.$file['details']['file_directory']
|
||||
.'&title='.urlencode($file['details']['photo_title']));
|
||||
|
||||
$this->incrementDownload($p);
|
||||
return true;
|
||||
}
|
||||
$p = $file['details'];
|
||||
$mime_types=array();
|
||||
$mime_types['gif'] = 'image/gif';
|
||||
|
|
Loading…
Add table
Reference in a new issue