summaryrefslogtreecommitdiff
path: root/app/Module/ReviewChangesModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Module/ReviewChangesModule.php')
-rw-r--r--app/Module/ReviewChangesModule.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/Module/ReviewChangesModule.php b/app/Module/ReviewChangesModule.php
index 42373a2935..3200b5c37e 100644
--- a/app/Module/ReviewChangesModule.php
+++ b/app/Module/ReviewChangesModule.php
@@ -18,6 +18,8 @@ namespace Fisharebest\Webtrees\Module;
use Fisharebest\Webtrees\Auth;
use Fisharebest\Webtrees\Database;
use Fisharebest\Webtrees\Filter;
+use Fisharebest\Webtrees\Functions\FunctionsDate;
+use Fisharebest\Webtrees\Functions\FunctionsEdit;
use Fisharebest\Webtrees\GedcomRecord;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Mail;
@@ -103,8 +105,8 @@ class ReviewChangesModule extends AbstractModule implements ModuleBlockInterface
$content .= "<a href=\"#\" onclick=\"window.open('edit_changes.php','_blank', chan_window_specs); return false;\">" . I18N::translate('There are pending changes for you to moderate.') . "</a><br>";
}
if ($sendmail == "yes") {
- $content .= I18N::translate('Last email reminder was sent ') . format_timestamp(Site::getPreference('LAST_CHANGE_EMAIL')) . "<br>";
- $content .= I18N::translate('Next email reminder will be sent after ') . format_timestamp(Site::getPreference('LAST_CHANGE_EMAIL') + (60 * 60 * 24 * $days)) . "<br><br>";
+ $content .= I18N::translate('Last email reminder was sent ') . FunctionsDate::formatTimestamp(Site::getPreference('LAST_CHANGE_EMAIL')) . "<br>";
+ $content .= I18N::translate('Next email reminder will be sent after ') . FunctionsDate::formatTimestamp(Site::getPreference('LAST_CHANGE_EMAIL') + (60 * 60 * 24 * $days)) . "<br><br>";
}
$content .= '<ul>';
$changes = Database::prepare(
@@ -172,7 +174,7 @@ class ReviewChangesModule extends AbstractModule implements ModuleBlockInterface
echo '<tr><td class="descriptionbox wrap width33">';
echo I18N::translate('Send out reminder emails?');
echo '</td><td class="optionbox">';
- echo edit_field_yes_no('sendmail', $sendmail);
+ echo FunctionsEdit::editFieldYesNo('sendmail', $sendmail);
echo '<br>';
echo I18N::translate('Reminder email frequency (days)') . "&nbsp;<input type='text' name='days' value='" . $days . "' size='2'>";
echo '</td></tr>';
@@ -180,7 +182,7 @@ class ReviewChangesModule extends AbstractModule implements ModuleBlockInterface
echo '<tr><td class="descriptionbox wrap width33">';
echo /* I18N: label for a yes/no option */ I18N::translate('Add a scrollbar when block contents grow');
echo '</td><td class="optionbox">';
- echo edit_field_yes_no('block', $block);
+ echo FunctionsEdit::editFieldYesNo('block', $block);
echo '</td></tr>';
}
}