aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2007-03-12 00:15:45 +0000
committerplegall <plg@piwigo.org>2007-03-12 00:15:45 +0000
commitb93ba126403b8b4e2646312fb7a602ac6939d20a (patch)
treefd9a71c6e50f7f9d9de50964c0c6eb1273deea8d /admin
parent8ad635c1cb7353b6d8eb9c9514d9b6980985ec2b (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/history.php36
1 files changed, 23 insertions, 13 deletions
diff --git a/admin/history.php b/admin/history.php
index d749a25b1..e47b33be5 100644
--- a/admin/history.php
+++ b/admin/history.php
@@ -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'])