X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Faddress.php;h=ca1a384fc30e7a6bac7fbc51fb4d8309157b4384;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=aad9fd09fbb4c1e0ba4fde70c6b489269d44c3a4;hpb=eb54852e7f50cccff37ee5a6d94f5c7ebeb8fc18;p=platal.git diff --git a/classes/address.php b/classes/address.php index aad9fd0..ca1a384 100644 --- a/classes/address.php +++ b/classes/address.php @@ -150,7 +150,6 @@ class Address return true; } - require_once 'geocoding.inc.php'; if ($format['requireGeocoding'] || $this->changed == 1) { $gmapsGeocoder = new GMapsGeocoder(); $gmapsGeocoder->getGeocodedAddress($this); @@ -257,7 +256,6 @@ class Address $this->format(); if (!$this->isEmpty()) { - require_once 'geocoding.inc.php'; foreach ($areas as $area) { Geocoder::getAreaId($this, $area); } @@ -265,15 +263,15 @@ class Address XDB::execute('INSERT INTO profile_addresses (pid, jobid, type, id, flags, accuracy, text, postalText, postalCode, localityId, subAdministrativeAreaId, administrativeAreaId, - countryId, latitude, longitude, updateTime, pub, comment, + countryId, latitude, longitude, pub, comment, north, south, east, west) - VALUES ({?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, - {?}, {?}, {?}, FROM_UNIXTIME({?}), {?}, {?}, {?}, {?}, {?}, {?})', + VALUES ({?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, + {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?})', $this->pid, $this->jobid, $this->type, $this->id, $this->flags, $this->accuracy, $this->text, $this->postalText, $this->postalCode, $this->localityId, $this->subAdministrativeAreaId, $this->administrativeAreaId, $this->countryId, $this->latitude, $this->longitude, - time(), $this->pub, $this->comment, + $this->pub, $this->comment, $this->north, $this->south, $this->east, $this->west); if ($this->type == self::LINK_PROFILE) {