Re: Re: opCommunityTopicPlugin1.1.0
投稿ツリー
-
opCommunityTopicPlugin1.1.0コメント出来ないエラー (serizawa, 2013/3/19 22:29)
-
Re: opCommunityTopicPlugin1.1.0 (serizawa, 2013/3/20 11:36)
-
Re: Re: opCommunityTopicPlugin1.1.0 (serizawa, 2013/3/20 18:56)
-
-
opDiaryPlugin1.5.0コメント出来ないエラー (kondo, 2013/10/24 11:00)
-
Re: opDiaryPlugin1.5.0コメント出来ないエラー (kondo, 2014/12/16 22:43)
-
-
Re: opCommunityTopicPlugin1.1.0コメント出来ないエラー (kondo, 2014/11/19 16:15)
-
serizawa
投稿数: 145
投稿数: 145
./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 }
投票数:3
平均点:10.00
返信する
