projects
/
iserv-mod-room-reservation.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd959ed
)
mod_roomReservationBookingTable: if weekends are not shown, show the next week alread...
author
rohieb
<devnull@localhost>
Sat, 26 Jul 2008 17:33:26 +0000
(19:33 +0200)
committer
rohieb
<devnull@localhost>
Sat, 26 Jul 2008 17:33:26 +0000
(19:33 +0200)
includes/mod_roomReservationBookingTable.inc
patch
|
blob
|
history
diff --git
a/includes/mod_roomReservationBookingTable.inc
b/includes/mod_roomReservationBookingTable.inc
index
b592ce4
..
8d017f5
100644
(file)
--- a/
includes/mod_roomReservationBookingTable.inc
+++ b/
includes/mod_roomReservationBookingTable.inc
@@
-171,7
+171,12
@@
class mod_roomReservationBookingsTable /* extends mclWidget */ {
} else {
$this->setRoom($aoRooms[0]->getName());
}
- $this->setDate(time());
+ // if weekends are not shown, show the next week already on saturday
+ if(!$this->oCfg->isShowWeekend() and date("w") == 6) {
+ $this->setDate(strtotime("monday"));
+ } else {
+ $this->setDate(time());
+ }
$this->setAction(MOD_ROOM_RESERVATION_BT_ACTION_SHOW);
$this->nPostInterval = 0;
This page took
0.023914 seconds
and
4
git commands to generate.