summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-06-20 11:03:23 +0000
committerfisharebest <fisharebest@gmail.com>2010-06-20 11:03:23 +0000
commite0c6d35d1258ffa85dc7a5892082073e46e4173a (patch)
treefff27f8a5c48f180dd22dfb432b2857ef7a6ed72 /modules
parent772c70240c6c1edf92f2b49d9546dba2c5a22acf (diff)
downloadwebtrees-e0c6d35d1258ffa85dc7a5892082073e46e4173a.tar.gz
webtrees-e0c6d35d1258ffa85dc7a5892082073e46e4173a.tar.bz2
webtrees-e0c6d35d1258ffa85dc7a5892082073e46e4173a.zip
Diffstat (limited to 'modules')
-rw-r--r--modules/recent_changes/module.php2
-rw-r--r--modules/todays_events/module.php2
-rw-r--r--modules/todo/module.php2
-rw-r--r--modules/upcoming_events/module.php4
-rw-r--r--modules/yahrzeit/module.php4
5 files changed, 7 insertions, 7 deletions
diff --git a/modules/recent_changes/module.php b/modules/recent_changes/module.php
index 92763fa2b3..8b3de3a56b 100644
--- a/modules/recent_changes/module.php
+++ b/modules/recent_changes/module.php
@@ -50,7 +50,7 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block {
$days =get_block_setting($block_id, 'days', 30);
$hide_empty=get_block_setting($block_id, 'hide_empty', false);
- $found_facts=get_recent_changes(client_jd()-$days);
+ $found_facts=get_recent_changes(WT_CLIENT_JD-$days);
if (empty($found_facts) && $hide_empty) {
return;
diff --git a/modules/todays_events/module.php b/modules/todays_events/module.php
index c82abf4329..6659e1c458 100644
--- a/modules/todays_events/module.php
+++ b/modules/todays_events/module.php
@@ -52,7 +52,7 @@ class todays_events_WT_Module extends WT_Module implements WT_Module_Block {
$infoStyle =get_block_setting($block_id, 'infoStyle', 'table');
$sortStyle =get_block_setting($block_id, 'sortStyle', 'alpha');
- $todayjd=client_jd();
+ $todayjd=WT_CLIENT_JD;
$id=$this->getName().$block_id;
$title='';
diff --git a/modules/todo/module.php b/modules/todo/module.php
index a4d91a75b2..d6218da2e2 100644
--- a/modules/todo/module.php
+++ b/modules/todo/module.php
@@ -80,7 +80,7 @@ class todo_WT_Module extends WT_Module implements WT_Module_Block {
$content .= '</tr>';
$found=false;
- $end_jd=$show_future ? 99999999 : client_jd();
+ $end_jd=$show_future ? 99999999 : WT_CLIENT_JD;
foreach (get_calendar_events(0, $end_jd, '_TODO', WT_GED_ID) as $todo) {
$record=GedcomRecord::getInstance($todo['id']);
if ($record && $record->canDisplayDetails()) {
diff --git a/modules/upcoming_events/module.php b/modules/upcoming_events/module.php
index e201bfa511..fb7d39afe4 100644
--- a/modules/upcoming_events/module.php
+++ b/modules/upcoming_events/module.php
@@ -54,8 +54,8 @@ class upcoming_events_WT_Module extends WT_Module implements WT_Module_Block {
$infoStyle=get_block_setting($block_id, 'infoStyle', 'table');
$sortStyle=get_block_setting($block_id, 'sortStyle', 'alpha');
- $startjd=client_jd()+1;
- $endjd=client_jd()+$days;
+ $startjd=WT_CLIENT_JD+1;
+ $endjd =WT_CLIENT_JD+$days;
// Output starts here
$id=$this->getName().$block_id;
diff --git a/modules/yahrzeit/module.php b/modules/yahrzeit/module.php
index da97ac68c9..9bc6c6b53b 100644
--- a/modules/yahrzeit/module.php
+++ b/modules/yahrzeit/module.php
@@ -51,8 +51,8 @@ class yahrzeit_WT_Module extends WT_Module implements WT_Module_Block {
$infoStyle=get_block_setting($block_id, 'infoStyle', 'table');
$block=get_block_setting($block_id, 'block', true);
- $startjd=server_jd();
- $endjd=$startjd+$days-1;
+ $startjd=WT_CLIENT_JD;
+ $endjd =WT_CLIENT_JD+$days-1;
$id=$this->getName().$block_id;
if ($ctype=='gedcom' && WT_USER_GEDCOM_ADMIN || $ctype=='user' && WT_USER_ID) {