Commit d85ced9d authored by Antoine Beaupré's avatar Antoine Beaupré
Browse files

another last minute fix: fix parse error in timing display

parent 7cfa0db5
...@@ -59,7 +59,7 @@ include("head.php"); ...@@ -59,7 +59,7 @@ include("head.php");
$t = time(); $t = time();
# that modulo (%) there computes the time of the next cron job # that modulo (%) there computes the time of the next cron job
# XXX: we assume the cron job is at every 5 minutes # 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 /> ?><br />
<a href="login.php" target="_top"><?php __("Click here to continue"); ?></a> <a href="login.php" target="_top"><?php __("Click here to continue"); ?></a>
</p> </p>
......
...@@ -51,7 +51,7 @@ include("head.php"); ...@@ -51,7 +51,7 @@ include("head.php");
$t = time(); $t = time();
# that modulo (%) there computes the time of the next cron job # that modulo (%) there computes the time of the next cron job
# XXX: we assume the cron job is at every 5 minutes # 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>"; echo "<p class=\"error\">".$error."</p>";
} }
?> ?>
......
...@@ -54,7 +54,7 @@ if (!$r) { ...@@ -54,7 +54,7 @@ if (!$r) {
$t = time(); $t = time();
# that modulo (%) there computes the time of the next cron job # that modulo (%) there computes the time of the next cron job
# XXX: we assume the cron job is at every 5 minutes # 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"); include("dom_edit.php");
exit; exit;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment