From 08875ed63c0c3efe6c6b3793bc2c7a2e5970a62b Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Sun, 11 Dec 2016 16:15:22 +0100 Subject: [PATCH] Removed newlines from output --- booked/bookedapi.php | 2 -- booked/bookedapiconfig.php | 4 +--- booked/control.zaf | 2 +- booked/getr.php | 8 +++----- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/booked/bookedapi.php b/booked/bookedapi.php index e318720..4c4cb73 100644 --- a/booked/bookedapi.php +++ b/booked/bookedapi.php @@ -1214,5 +1214,3 @@ class bookedAPIclient { } -?> - diff --git a/booked/bookedapiconfig.php b/booked/bookedapiconfig.php index 02b4f09..b3d2d2c 100644 --- a/booked/bookedapiconfig.php +++ b/booked/bookedapiconfig.php @@ -67,6 +67,4 @@ const SELECT_LIST = 3; const MULTI_LINE_TEXT = 2; const CHECK_BOX = 4; - - -?> + diff --git a/booked/control.zaf b/booked/control.zaf index eb74ff7..c416d4a 100644 --- a/booked/control.zaf +++ b/booked/control.zaf @@ -33,6 +33,6 @@ Parameters:: Description:: Get number of reservations in given time range :: -Cmd: getr.php "$from" "$to" +Cmd: php getr.php "$from" "$to" /Item diff --git a/booked/getr.php b/booked/getr.php index 5d8b720..3055ae3 100755 --- a/booked/getr.php +++ b/booked/getr.php @@ -1,6 +1,4 @@ -#!/usr/bin/env php getTimestamp(); } else { $from=time(); } if ($to) { - $to=New DateTime($to); + $to=New DateTime(strtr($to,"_"," ")); $to=$to->getTimestamp(); } else { $to=time()+3600; @@ -43,4 +42,3 @@ echo $cnt; -