Remove Address::updateGeocoding unused parameter
authorNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Sun, 5 Oct 2014 12:49:41 +0000 (14:49 +0200)
committerNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Sun, 5 Oct 2014 12:55:24 +0000 (14:55 +0200)
Commit a3328b1eef78 ("Requires address validation properly, ie when
addresses are saved") modified Address::updateGeocoding and the new
version no longer uses its parameter.

classes/address.php
include/validations/address.inc.php

index cffa45b..4998577 100644 (file)
@@ -776,7 +776,7 @@ class Address
         return $best_mail;
     }
 
-    public function updateGeocoding($text)
+    public function updateGeocoding()
     {
         XDB::execute('UPDATE  profile_addresses
                          SET  text = {?}, postalText = {?}, types = {?}, formatted_address = {?},
index 0e1c0b7..12b2779 100644 (file)
@@ -126,7 +126,7 @@ class AddressReq extends ProfileValidate
         $this->address['changed'] = 0;
         $address = new Address($this->address);
         $address->format();
-        $address->updateGeocoding($this->given_text);
+        $address->updateGeocoding();
 
         return true;
     }