]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
s/getLease/getLeaseTime/ just to be a bit more clear
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 18:55:17 +0000 (19:55 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 18:55:17 +0000 (19:55 +0100)
plugins/OStatus/classes/HubSub.php

index 2e3fde62437424b8b519c1065335991be253c24e..fe911677652e0a132499f1bd5f8492156707f642 100644 (file)
@@ -99,7 +99,7 @@ class HubSub extends Managed_DataObject
         $this->sub_end = common_sql_date(time() + $length);
     }
 
-    function getLease()
+    function getLeaseTime()
     {
         if (empty($this->sub_start) || empty($this->sub_end)) {
             return null;
@@ -159,7 +159,7 @@ class HubSub extends Managed_DataObject
                         '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