diff options
| author | Brian Holland <windmillway2@gmail.com> | 2010-04-12 16:27:30 +0000 |
|---|---|---|
| committer | Brian Holland <windmillway2@gmail.com> | 2010-04-12 16:27:30 +0000 |
| commit | cbe296b244de761082071c7946c55bb3c1dcbd06 (patch) | |
| tree | 3b1542a3691d1dfb1f86ee361216b41c705ad565 /modules | |
| parent | 829b23c5c7b0f4159c17b555f1aac019ad1c8bb3 (diff) | |
| download | webtrees-cbe296b244de761082071c7946c55bb3c1dcbd06.tar.gz webtrees-cbe296b244de761082071c7946c55bb3c1dcbd06.tar.bz2 webtrees-cbe296b244de761082071c7946c55bb3c1dcbd06.zip | |
Add missing "media-reorder" function to Album Page
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/lightbox/functions/lb_head.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/lightbox/functions/lb_head.php b/modules/lightbox/functions/lb_head.php index c80981792f..3e6fd4be6b 100644 --- a/modules/lightbox/functions/lb_head.php +++ b/modules/lightbox/functions/lb_head.php @@ -194,8 +194,8 @@ require_once WT_ROOT.'includes/media_reorder_count.php'; } } /* - //Album Reorder Media ( If media exists and is greater than 1 item ) ----- - if (WT_USER_CAN_EDIT && $tot_med_ct>1) { + // Album Reorder Media ----- + if (WT_USER_CAN_EDIT) { if ($LB_AL_HEAD_LINKS == "both") { print "<td class=\"width15 center wrap\" valign=\"top\">"; print "<a href=\"".encode_url(WT_SCRIPT_NAME."?pid={$pid}&tab={$tabno}&reorder=1")."\">" ; @@ -224,9 +224,8 @@ require_once WT_ROOT.'includes/media_reorder_count.php'; } */ - //Popup Reorder Media ( If media exists and is greater than 1 item ) ----- - global $tot_med_ct; - if (WT_USER_CAN_EDIT && $tot_med_ct>1) { + // Popup Reorder Media ----- + if (WT_USER_CAN_EDIT ) { if ($LB_AL_HEAD_LINKS == "both") { print "<td class=\"width15 center wrap\" valign=\"top\">"; print "<a href=\"javascript: reorder_media()\">" ; |
