Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 986

Přidáno uživatelem Michal Kliment před více než 13 roky(ů)

Oprava zobrazeni detailu SMS zpravy, viz http://vyuka.slfree.net/mod/forum/discuss.php?d=1702

Zobrazit rozdíly:

freenetis/branches/testing/application/controllers/sms.php
else
$answer = ' - ';
}
$code = ORM::factory('contact')->find_phone_country_code($sms->receiver);
$number = substr($sms->receiver, strlen($code));
if (substr($sms->receiver, 0, 3) == '420')
$receiver = substr($sms->receiver, 3);
$receiver = ORM::factory('user')->get_user_by_phone_number_country_code ($number, $code);
$receiver = ORM::factory('user')->where('phone', $receiver)->find();
if ($receiver->id != null)
{
if (substr($sms->receiver, 0,3) == '420')
$r = html::anchor(url_lang::base().'users/show/'.$receiver->id, '420'.$receiver->phone, array('title' => $receiver->name.' '.$receiver->surname));
else
$r = html::anchor(url_lang::base().'users/show/'.$receiver->id, $receiver->phone, array('title' => $receiver->name.' '.$receiver->surname));
}
if ($receiver && $receiver->id)
$r = html::anchor(url_lang::base().'users/show/'.$receiver->id, $code.$number, array('title' => $receiver->name.' '.$receiver->surname));
else
$r = $sms->receiver;
$r = $sms->receiver;
$view = new View('main');
$view->title = url_lang::lang('texts.Show SMS message');

Také k dispozici: Unified diff