Example #1
0
 /**
  * Write a message when a user forgets to submit their tips
  *
  * @since 2.1.9
  * @param int The Joomla id for the user
  * @param object The season object
  * @param object The round object
  */
 function writeOnNoTips($user_id, $jSeason, $jRound)
 {
     global $jTips;
     jTipsLogger::_log('building onNoTips message to send to JomSocial');
     $variables = array('season' => $jSeason->name, 'round' => $jRound->round);
     $act = new stdClass();
     $act->actor = $user_id;
     $act->target = 0;
     // BUG 344 - typo in call to parseString function
     $act->title = jTipsJomSocial::parseString($jTips['JomSocialOnNoTipsMessage'], $variables, $jSeason);
     //"{actor} forgot to submit their tips for {$jRound->round} of the {$jSeason->name}" .jTipsJomSocial::_getCompetitionSuffix($jSeason);
     $act->content = '';
     $act->app = 'jtips_wont';
     jTipsJomSocial::write($act);
 }