Exemplo n.º 1
0
 public function renderMessages($msgCountryID, $messages)
 {
     global $Member;
     for ($i = 0; $i < count($messages); $i++) {
         if ($messages[$i]['fromCountryID'] != 0) {
             if (!isset($Member) || $Member->countryID != $messages[$i]['fromCountryID']) {
                 $messages[$i]['message'] = '[<strong>' . $this->countryName($messages[$i]['fromCountryID']) . '</strong>]<span style="color: black;">:' . $messages[$i]['message'];
             } else {
                 $messages[$i]['message'] = '[<strong>You</strong>]<span style="color: black;">:' . $messages[$i]['message'];
             }
         }
     }
     return parent::renderMessages($msgCountryID, $messages);
 }