.
スポンサーリンク

Re: Re: opCommunityTopicPlugin1.1.0

投稿ツリー


このトピックの投稿一覧へ

serizawa

なし Re: Re: opCommunityTopicPlugin1.1.0

msg# 1.1.1
depth:
2
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2013/3/20 18:56 | 最終変更
serizawa  編集者   投稿数: 143

./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
返信する

この投稿に返信する

題名
ゲスト名
投稿本文

  条件検索へ


検索

ページの一覧 索引

ログイン

ユーザー名:


パスワード:





パスワード紛失  |新規登録

メインメニュー

更新ページ

ad
スポンサーリンク

投稿一覧

オンライン状況
23 人のユーザが現在オンラインです。 (1 人のユーザが フォーラム を参照しています。)

登録ユーザ: 0
ゲスト: 23

もっと...