mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
fix #153 No display of thumbs in report
This commit is contained in:
@@ -573,11 +573,11 @@ class module_report_nav extends module_report
|
||||
*/
|
||||
public function buildTabUserWhat($bid, $rid, $tab = false)
|
||||
{
|
||||
$this->initialize();
|
||||
$sbas_id = phrasea::sbasFromBas($bid);
|
||||
$record = new record_adapter($sbas_id, $rid);
|
||||
|
||||
$this->setDisplay($tab);
|
||||
$this->initialize();
|
||||
$this->champ = array(
|
||||
'photo',
|
||||
'record_id',
|
||||
@@ -593,7 +593,7 @@ class module_report_nav extends module_report
|
||||
|
||||
|
||||
$x = $record->get_thumbnail();
|
||||
$this->result = array(
|
||||
$this->result[] = array(
|
||||
'photo' =>
|
||||
"<img style='width:" . $x->get_width() . "px;height:" . $x->get_height() . "px;'
|
||||
src='" . $x->get_url() . "'>"
|
||||
@@ -603,10 +603,10 @@ class module_report_nav extends module_report
|
||||
, 'titre' => $record->get_title()
|
||||
, 'taille' => $document->get_size()
|
||||
);
|
||||
|
||||
|
||||
$this->setDisplayNav();
|
||||
$this->setReport();
|
||||
|
||||
|
||||
return $this->report;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user