another last minute fix: fix parse error in timing display

This commit is contained in:
Antoine Beaupré 2008-04-14 03:42:42 +00:00
parent 7cfa0db5ed
commit d85ced9da1
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ include("head.php");
$t = time();
# that modulo (%) there computes the time of the next cron job
# XXX: we assume the cron job is at every 5 minutes
print strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => %date('H:i:s', $t), '%time' => date('H:i:s', %($t-($t%300)+300))));
print strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300))));
?><br />
<a href="login.php" target="_top"><?php __("Click here to continue"); ?></a>
</p>

View File

@ -51,7 +51,7 @@ include("head.php");
$t = time();
# that modulo (%) there computes the time of the next cron job
# XXX: we assume the cron job is at every 5 minutes
$error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => %date('H:i:s', $t), '%time' => date('H:i:s', %($t-($t%300)+300))));
$error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300))));
echo "<p class=\"error\">".$error."</p>";
}
?>

View File

@ -54,7 +54,7 @@ if (!$r) {
$t = time();
# that modulo (%) there computes the time of the next cron job
# XXX: we assume the cron job is at every 5 minutes
$error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => %date('H:i:s', $t), '%time' => date('H:i:s', %($t-($t%300)+300))));
$error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300))));
}
include("dom_edit.php");
exit;