diff options
| author | lsces <lester@lsces.co.uk> | 2012-08-06 08:32:50 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2012-08-06 08:32:50 +0100 |
| commit | 44b287fca95e3ed5eb074ead88fc5be4c3e29afc (patch) | |
| tree | 9b40b9f2dba0b9431681c368c34d229c3687033c /import | |
| parent | 64e34710a022c6f49c5052aee2fdd0b5b8ab9bf9 (diff) | |
| download | contact-44b287fca95e3ed5eb074ead88fc5be4c3e29afc.tar.gz contact-44b287fca95e3ed5eb074ead88fc5be4c3e29afc.tar.bz2 contact-44b287fca95e3ed5eb074ead88fc5be4c3e29afc.zip | |
Missed getDisplayUrl update - ContactOld is an alternative style of contact
Diffstat (limited to 'import')
| -rw-r--r-- | import/ContactOld.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/import/ContactOld.php b/import/ContactOld.php index a8fc8eb..e22384c 100644 --- a/import/ContactOld.php +++ b/import/ContactOld.php @@ -59,7 +59,7 @@ class Contact extends LibertyBase { $this->mContactName = $result->fields['title']; $this->mInfo['creator'] = (isset( $result->fields['creator_real_name'] ) ? $result->fields['creator_real_name'] : $result->fields['creator_user'] ); $this->mInfo['editor'] = (isset( $result->fields['modifier_real_name'] ) ? $result->fields['modifier_real_name'] : $result->fields['modifier_user'] ); - $this->mInfo['display_url'] = $this->getContactUrl(); + $this->mInfo['display_url'] = $this->getDisplayUrl(); $os1 = new OSRef($this->mInfo['x_coordinate'], $this->mInfo['y_coordinate']); $ll1 = $os1->toLatLng(); $this->mInfo['prop_lat'] = $ll1->lat; @@ -211,9 +211,9 @@ class Contact extends LibertyBase { if ( $this->mContactId != $aux['contact_id'] ) $this->load($aux['contact_id']); if (empty($this->mInfo['contact_id']) ) { - $ret = '<a href="'.$this->getContactUrl($aux['contact_id']).'">'.$aux['title'].'</a>'; + $ret = '<a href="'.$this->getDisplayUrl($aux['contact_id']).'">'.$aux['title'].'</a>'; } else { - $ret = '<a href="'.$this->getContactUrl($aux['contact_id']).'">'."Contact - ".$this->mInfo['title'].'</a>'; + $ret = '<a href="'.$this->getDisplayUrl($aux['contact_id']).'">'."Contact - ".$this->mInfo['title'].'</a>'; } return $ret; } @@ -283,7 +283,7 @@ class Contact extends LibertyBase { $this->mDb->CompleteTrans(); while ($res = $result->fetchRow()) { - $res['contact_url'] = $this->getContactUrl( $res['contact_id'] ); + $res['contact_url'] = $this->getDisplayUrl( $res['contact_id'] ); $ret[] = $res; } |
