[fix] Allow guests to see technical details.

Z
This commit is contained in:
Solomon Peachy 2008-10-05 00:11:43 -04:00
parent 0a89f86dbc
commit f1b89b16da
2 changed files with 10 additions and 12 deletions

View File

@ -32,6 +32,7 @@ For further information about Photo Organizer, see its web site at:
code.
[misc] Hide keywords/views on the photo tooltip info if it's empty.
[misc] Migrate more queries to take advantage of memcache.
[fix] Allow guests/etc to see technical image details.
2.36.1 (September 27, 2008)

View File

@ -291,23 +291,20 @@ if ($detail_info == 1) {
print "<li $here>".emit_a(generate_link('photo', $photo_id, $photo_args), $strings['photo_details'], $here)."</li>\n";
if (($po_user['id'] == $owner_id) || ($po_user['type'] == PO_USER_TYPE_ADMIN)) {
if ($detail_info == 2 || $detail_info == 98 || $detail_info == 99) {
$here = "class=\"menu_here\" ";
} else {
$here = "";
}
if ($detail_info == 2 || $detail_info == 98 || $detail_info == 99) {
$here = "class=\"menu_here\" ";
} else {
$here = "";
}
$photo_args['detail_info'] = 2;
print "<li $here>".emit_a(generate_link('photo', $photo_id, $photo_args), $strings['photo_technical'], $here)."</li>\n";
}
$photo_args['detail_info'] = 2;
print "<li $here>".emit_a(generate_link('photo', $photo_id, $photo_args), $strings['photo_technical'], $here)."</li>\n";
if ($detail_info == 5) {
$here = "class=\"menu_here\" ";
} else {
} else {
$here = "";
}
}
$photo_args['detail_info'] = 5;
print "<li $here>".emit_a(generate_link('photo', $photo_id, $photo_args), $strings['photo_versions'], $here)."</li>\n";