From: Nicolas Iooss Date: Sun, 5 Oct 2014 12:49:41 +0000 (+0200) Subject: Remove Address::updateGeocoding unused parameter X-Git-Url: http://git.polytechnique.org/?p=platal.git;a=commitdiff_plain;h=8526cfe046865202710c548a3a58c7dbddeaee65 Remove Address::updateGeocoding unused parameter Commit a3328b1eef78 ("Requires address validation properly, ie when addresses are saved") modified Address::updateGeocoding and the new version no longer uses its parameter. --- diff --git a/classes/address.php b/classes/address.php index cffa45b..4998577 100644 --- a/classes/address.php +++ b/classes/address.php @@ -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 = {?}, diff --git a/include/validations/address.inc.php b/include/validations/address.inc.php index 0e1c0b7..12b2779 100644 --- a/include/validations/address.inc.php +++ b/include/validations/address.inc.php @@ -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; }