summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Wilenski <wooc@gazeta.pl>2011-10-22 22:02:37 +0000
committerŁukasz Wilenski <wooc@gazeta.pl>2011-10-22 22:02:37 +0000
commite48aa14bb997ab48470064c8113c937174a78310 (patch)
tree7c48039e52bfc2423e1bf03686003685ddf0416f
parent61d72c051041c9a7f97a3629cc11eb3378ada15c (diff)
downloadwebtrees-e48aa14bb997ab48470064c8113c937174a78310.tar.gz
webtrees-e48aa14bb997ab48470064c8113c937174a78310.tar.bz2
webtrees-e48aa14bb997ab48470064c8113c937174a78310.zip
Remove unnecessary "require_once", add one which is necessary in better place
-rw-r--r--modules_v3/lightbox/functions/lb_call_js.php2
-rw-r--r--modules_v3/lightbox/module.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules_v3/lightbox/functions/lb_call_js.php b/modules_v3/lightbox/functions/lb_call_js.php
index c2ca80f7cb..f10368c3cb 100644
--- a/modules_v3/lightbox/functions/lb_call_js.php
+++ b/modules_v3/lightbox/functions/lb_call_js.php
@@ -30,6 +30,8 @@ if (!defined('WT_WEBTREES')) {
exit;
}
+require_once WT_ROOT.'js/prototype.js.htm';
+
global $TEXT_DIRECTION;
$LB_MUSIC_FILE=get_module_setting('lightbox', 'LB_MUSIC_FILE', WT_STATIC_URL.WT_MODULES_DIR.'lightbox/music/music.mp3');
?>
diff --git a/modules_v3/lightbox/module.php b/modules_v3/lightbox/module.php
index 7809936051..bf6b6dd0bb 100644
--- a/modules_v3/lightbox/module.php
+++ b/modules_v3/lightbox/module.php
@@ -27,8 +27,6 @@ if (!defined('WT_WEBTREES')) {
header('HTTP/1.0 403 Forbidden');
exit;
}
-// prevents the error where image on Lightbox fails to close - How? I don't know
-require_once WT_ROOT.'includes/functions/functions_print_lists.php';
class lightbox_WT_Module extends WT_Module implements WT_Module_Config, WT_Module_Tab {
// Extend WT_Module