From 8526cfe046865202710c548a3a58c7dbddeaee65 Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Sun, 5 Oct 2014 14:49:41 +0200 Subject: [PATCH] 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. --- classes/address.php | 2 +- include/validations/address.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.1.4