.
スポンサーリンク

Re: opCommunityTopicPlugin1.1.0

投稿ツリー


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

serizawa

なし Re: opCommunityTopicPlugin1.1.0

msg# 1.1
depth:
1
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2013/3/20 11:36 | 最終変更
serizawa  編集者   投稿数: 143

opCommunityTopicPlugin1.0.4になく、通知センターに関係する新しファイル
./plugins/opCommunityTopicPlugin/lib/util/opCommunityTopicPluginUtil.class.php

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     opNotificationCenter::notify($fromMember, $toMember, $message, array('category'=>'    other', 'url'=>$url, 'icon_url'=>null));
13   }
14 }

12行目をコメントアウトするとエラーが起きなくなるのでここを調べてみる

投票数:1 平均点:10.00
返信する

この投稿に返信する

題名
ゲスト名
投稿本文

  条件検索へ


検索

ページの一覧 索引

ログイン

ユーザー名:


パスワード:





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

メインメニュー

更新ページ

ad
スポンサーリンク

投稿一覧

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

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

もっと...