where am i?
This commit is contained in:
parent
77eaccdcc8
commit
d5145145ce
@ -250,7 +250,8 @@ class Crunchbutton_Order extends Cana_Table {
|
||||
}
|
||||
|
||||
public function que() {
|
||||
exec('nohup '.c::config()->dirs->root.'cli/notify.php '.$this->id_order.' > /dev/null 2>&1 &');
|
||||
//exec('nohup '.c::config()->dirs->root.'cli/notify.php '.$this->id_order.' > /dev/null 2>&1 &');
|
||||
exec('nohup '.c::config()->dirs->root.'cli/notify.php '.$this->id_order.' &> /dev/null');
|
||||
}
|
||||
|
||||
public function message($type) {
|
||||
|
||||
@ -48,12 +48,14 @@ var Restaurant = function(id) {
|
||||
offset = -(today.getTimezoneOffset()); // @todo: ensure this works on positive tz
|
||||
|
||||
for (x in hours) {
|
||||
console.log(hours);
|
||||
var
|
||||
open = self.dateFromItem(hours[x][0], offset),
|
||||
close = self.dateFromItem(hours[x][1], offset);
|
||||
if (today >= open && today <= close) {
|
||||
return true;
|
||||
for (xx in hours[x]) {
|
||||
console.log(hours[x]);
|
||||
var
|
||||
open = self.dateFromItem(hours[x][xx][0], offset),
|
||||
close = self.dateFromItem(hours[x][xx][1], offset);
|
||||
if (today >= open && today <= close) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user