We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 07796250 authored by Evan Prodromou's avatar Evan Prodromou

add method Realtime_channel::touch()

parent 85ea41ea
......@@ -230,13 +230,18 @@ class Realtime_channel extends Managed_DataObject
}
if ($channel->find(true)) {
// Touch it!
$orig = clone($channel);
$channel->modified = common_sql_now();
$channel->update($orig);
$channel->touch();
return $channel;
} else {
return null;
}
}
function touch()
{
// Touch it!
$orig = clone($this);
$this->modified = common_sql_now();
$this->update($orig);
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment