返信する: OpnePNE3
- Re: Re: opCommunityTopicPlugin1.1.0
- 投稿者: serizawa 投稿日時: 2013/3/20 18:56
./plugins/opCommunityTopicPlugin/lib/util/opCommunityTopicPluginUtil.class.php
修正案1
1 <?php 2 3 class opCommunityTopicPluginUtil 4 { 5 public static function sendNewCommentNotification ($fromMember, $toMember, $topicId){ 6 $rootPath = sfContext::getInstance()->getRequest()->getRelativeUrlRoot(); 7 $url = $rootPath.'/communityTopic/'.$topicId; 8 9 sfApplicationConfiguration::getActive()->loadHelpers(array('I18N')); 10 $message = format_number_choice('[1]1 topic has new comments|(1,Inf]%1% topics hav e new comments', array('%1%'=>'1'), 1); 11 12 if($Member->member_id != NULL){ opNotificationCenter::notify($fromMember, $toMember, $message, array('category'=>' other', 'url'=>$url, 'icon_url'=>null)); } 13 } 14 }