album link will automatically be shown if uploaded more than one image via webinterface

This commit is contained in:
Christian Haschek
2016-10-22 20:45:22 +02:00
parent 903e679524
commit fd1798b686
5 changed files with 17 additions and 9 deletions

View File

@@ -499,9 +499,17 @@ class PictshareModel extends Model
$o.= '<h2>'.$this->translate(4).' '.++$i.'</h2><a target="_blank" href="'.DOMAINPATH.$data['hash'].'">'.$data['hash'].'</a><br/>';
else
$o.= '<h2>'.$this->translate(4).' '.++$i.'</h2><a target="_blank" href="'.DOMAINPATH.$data['hash'].'"><img src="'.DOMAINPATH.'300/'.$data['hash'].'" /></a><br/>';
$hashes[] = $data['hash'];
}
}
}
if(count($hashes)>1)
{
$albumlink = DOMAINPATH.implode('/',$hashes);
$o.='<hr/><h1>Album link</h1><a href="'.$albumlink.'" >'.$albumlink.'</a>';
}
return $o;
}