diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-01-04 09:50:59 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-01-04 09:50:59 +0000 |
| commit | a179654186e29a60142af66d2ce63ce6d47b02d4 (patch) | |
| tree | 02245a3740ad6e8ad17817e3d96e809a3fb1ba6c /modules/lightbox/functions/lb_head.php | |
| parent | 91f7b3afc6a983478565f07f0282ddabbff25fe1 (diff) | |
| download | webtrees-a179654186e29a60142af66d2ce63ce6d47b02d4.tar.gz webtrees-a179654186e29a60142af66d2ce63ce6d47b02d4.tar.bz2 webtrees-a179654186e29a60142af66d2ce63ce6d47b02d4.zip | |
Fix: lightbox dependency on global $pid
Diffstat (limited to 'modules/lightbox/functions/lb_head.php')
| -rw-r--r-- | modules/lightbox/functions/lb_head.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/lightbox/functions/lb_head.php b/modules/lightbox/functions/lb_head.php index 5f567baf73..1d30ddee56 100644 --- a/modules/lightbox/functions/lb_head.php +++ b/modules/lightbox/functions/lb_head.php @@ -45,24 +45,24 @@ $reorder=safe_get('reorder', '1', '0'); <!-- function reorder_media() { var win02 = window.open( - "edit_interface.php?action=reorder_media&pid=<?php echo $pid; ?>&currtab=album", "win02", "resizable=1, menubar=0, scrollbars=1, top=20, HEIGHT=840, WIDTH=450 "); + "edit_interface.php?action=reorder_media&pid=<?php echo $this->controller->indi->getXref(); ?>&currtab=album", "win02", "resizable=1, menubar=0, scrollbars=1, top=20, HEIGHT=840, WIDTH=450 "); if (window.focus) {win02.focus();} } function album_add() { win03 = window.open( - "addmedia.php?action=showmediaform&linktoid=<?php echo $pid; ?>", "win03", "resizable=1, scrollbars=1, top=50, HEIGHT=780, WIDTH=600 "); + "addmedia.php?action=showmediaform&linktoid=<?php echo $this->controller->indi->getXref(); ?>", "win03", "resizable=1, scrollbars=1, top=50, HEIGHT=780, WIDTH=600 "); if (window.focus) {win03.focus();} } function album_link() { win04 = window.open( - "inverselink.php?linktoid=<?php echo $pid; ?>&linkto=person", "win04", "resizable=1, scrollbars=1, top=50, HEIGHT=300, WIDTH=450 "); + "inverselink.php?linktoid=<?php echo $this->controller->indi->getXref(); ?>&linkto=person", "win04", "resizable=1, scrollbars=1, top=50, HEIGHT=300, WIDTH=450 "); win04.focus() } function goto_config_lightbox() { - window.location = "module.php?mod=lightbox&mod_action=lb_editconfig&pid=<?php echo $pid; ?>&gedcom=<?php echo $GEDCOM; ?>#lightbox"; + window.location = "module.php?mod=lightbox&mod_action=admin_config&pid=<?php echo $this->controller->indi->getXref(); ?>&gedcom=<?php echo $GEDCOM; ?>#lightbox"; } --> </script> |
