Point 1 :
in -> application\models\contacts\Contact.class.php , ~ line 169
Not finished yet, cause :
// || $contact->canEdit(logged_user() commented, can't access object
<?php
//****************************************//
//**** © Captain FLAM - 06/2011 ****//
/**
* Return display name for this contact.
*
* @access public
* @param void
* @return string
*/
function getDisplayName()
{
$fn = ''; $fn = parent::getFirstName(); $mn = parent::getMiddlename(); $ln = parent::getLastName();
if ($ln != '')
{
//$contact = Contacts::findById(get_id());
if (! logged_user()->isAdministrator())
$ln = substr_utf($ln, 0, 1). '.';
}
if ($mn != '' && $fn != '') $fn .= ' ';
$fn .= $mn;
if ($ln != '' && $fn != '') $fn .= ' ';
$fn .= $ln;
return trim($fn);
}
/**
* Return display name with last name first for this contact
*
* @access public
* @param void
* @return string
*/
function getReverseDisplayName()
{
$ln = ''; $fn = parent::getFirstName(); $mn = parent::getMiddlename(); $ln = parent::getLastName();
if ($ln != '')
{
//$contact = Contacts::findById(get_id());
if (! logged_user()->isAdministrator() && ! logged_user()->isAccountOwner()) // && ! $contact->canEdit(logged_user()))
$ln = substr_utf($ln, 0, 1). '.';
}
if ($fn != '' && $ln != '') $ln .= ' ';
$ln .= $fn;
if ($mn != '' && $ln != '') $ln .= ' ';
$ln .= $mn;
return trim($ln);
}
//**** ****//
//****************************************//
?>
(Don't put the PHP tags, it's just here to have hilighted code)