Improvement: in history search filtered lines, clicking on filename leads to

standard size picture.


git-svn-id: http://piwigo.org/svn/trunk@1896 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2007-03-12 00:15:45 +00:00
parent 8ad635c1cb
commit b93ba12640
+23 -13
View File
@@ -541,6 +541,28 @@ SELECT
)
);
}
$image_string = '';
if (isset($line['image_id']))
{
$picture_url = make_picture_url(
array(
'image_id' => $line['image_id'],
)
);
$image_string = '<a href="'.$picture_url.'">';
$image_string.= '('.$line['image_id'].')';
if (isset($label_of_image[$line['image_id']]))
{
$image_string.= ' '.$label_of_image[$line['image_id']];
}
else
{
$image_string.= ' unknown filename';
}
}
$template->assign_block_vars(
'detail',
@@ -549,19 +571,7 @@ SELECT
'TIME' => $line['time'],
'USER' => $user_string,
'IP' => $line['IP'],
'IMAGE' => isset($line['image_id'])
? ( isset($label_of_image[$line['image_id']])
? sprintf(
'(%u) %s',
$line['image_id'],
$label_of_image[$line['image_id']]
)
: sprintf(
'(%u) deleted ',
$line['image_id']
)
)
: '',
'IMAGE' => $image_string,
'TYPE' => $line['image_type'],
'SECTION' => $line['section'],
'CATEGORY' => isset($line['category_id'])