$this->sub_end = common_sql_date(time() + $length);
}
- function getLease()
+ function getLeaseTime()
{
if (empty($this->sub_start) || empty($this->sub_end)) {
return null;
'hub.topic' => $this->getTopic(),
'hub.challenge' => $challenge);
if ($mode == 'subscribe') {
- $params['hub.lease_seconds'] = $this->getLease();
+ $params['hub.lease_seconds'] = $this->getLeaseTime();
}
if ($token !== null) { // TODO: deprecated in PuSH 0.4
$params['hub.verify_token'] = $token; // let's put it in there if remote uses PuSH <0.4