示例#1
0
 /**
  * Get Thank You User by Message ID
  * @param int $pid
  * @return array usernames with profillink
  * @since 1.6
  */
 function getThankYouUser($pid)
 {
     if ($this->config->showthankyou) {
         $named = '';
         if (!$this->config->username) {
             $named = 'name';
         }
         $res = KunenaThankYou::getThankYouUsers($pid, $named);
         if (KunenaError::checkDatabaseError()) {
             return false;
         }
         $thank_string = array();
         foreach ($res as $k => $w) {
             $thank_string[$k] = CKunenaLink::GetProfileLink($w->id, $w->username);
         }
         return $thank_string;
     }
 }