mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-19 16:13:00 +02:00
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:
+23
-13
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user