From: Stéphane Jacob Date: Sat, 18 Sep 2010 14:33:57 +0000 (+0200) Subject: Drops update time from profile_addresses. X-Git-Tag: xorg/1.0.1~177 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=51d30e26b6ad69245d0d469f3c8b6b530c64332a;p=platal.git Drops update time from profile_addresses. Signed-off-by: Stéphane Jacob --- diff --git a/classes/address.php b/classes/address.php index aad9fd0..16ecd80 100644 --- a/classes/address.php +++ b/classes/address.php @@ -265,15 +265,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) { diff --git a/modules/admin.php b/modules/admin.php index c98c5bc..c8b57bc 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -1460,15 +1460,15 @@ class AdminModule extends PLModule XDB::execute("INSERT INTO profile_addresses (jobid, type, id, accuracy, text, postalText, postalCode, localityId, subAdministrativeAreaId, administrativeAreaId, - countryId, latitude, longitude, updateTime, + countryId, latitude, longitude, north, south, east, west) VALUES ({?}, 'hq', 0, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, - {?}, {?}, FROM_UNIXTIME({?}), {?}, {?}, {?}, {?})", + {?}, {?}, {?}, {?}, {?}, {?})", $id, $address['accuracy'], $address['text'], $address['postalText'], $address['postalCode'], $address['localityId'], $address['subAdministrativeAreaId'], $address['administrativeAreaId'], $address['countryId'], $address['latitude'], $address['longitude'], - $address['updateTime'], $address['north'], $address['south'], + $address['north'], $address['south'], $address['east'], $address['west']); $page->trigSuccess("L'entreprise a bien été mise à jour.");