X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/68acff62101e1c302e55befa6d526c46f15da464..f547127c637332119b42329ca78d0e1a659d9739:/widget/countdown.php diff --git a/widget/countdown.php b/widget/countdown.php index 29e73c6..70d4382 100644 --- a/widget/countdown.php +++ b/widget/countdown.php @@ -1,8 +1,8 @@ path)) { +if (empty($Page->place[0])) { return; } -@list ($target, $interval) = explode('+', ltrim($Page->path, '/')); +@list ($target, $interval) = explode('+', $Page->place[0]); $target = new DateTime($target); $now = new DateTime('NOW'); $next = $target->diff($now); # age