git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue: reply edit of page and announce columns
[minimedit.git]
/
widget
/
countdown.php
diff --git
a/widget/countdown.php
b/widget/countdown.php
index 746e4b6f88559d1409185525e2142c5c2944fd74..70d4382e45c153ba6cb0455953d6784c7e84e4f1 100644
(file)
--- a/
widget/countdown.php
+++ b/
widget/countdown.php
@@
-1,8
+1,8
@@
<?php
<?php
-if (empty($
Args
)) {
+if (empty($
Page->place[0]
)) {
return;
}
return;
}
-@list ($target, $interval) = explode('+',
ltrim($Args, '/')
);
+@list ($target, $interval) = explode('+',
$Page->place[0]
);
$target = new DateTime($target);
$now = new DateTime('NOW');
$next = $target->diff($now); # age
$target = new DateTime($target);
$now = new DateTime('NOW');
$next = $target->diff($now); # age