我修改contentfilter.class.php里面的代码,并不成功。请问应该怎么做?
是否另外需要实现 addPost与contentfilter的binding?在AddComment的时候为什么会执行contentfilter.class.php?谢谢!!!
if( $request->getValue( "op" ) != "AddComment" and $request->getValue( "op" ) != "addPost") {
$result = new PipelineResult();
return $result;
}
//
// get the content that has been globally blocked by the admin(s)
//
$filteredContents = new FilteredContents();
$globalFilteredContents = $filteredContents->getGlobalFilteredContents();
// text and topic of the comment
if($request->getValue( "op" ) != "postText"){
$commentText = $request->getValue( "commentText" );
$commentTopic = $request->getValue( "commentTopic" );
$userName = $request->getValue( "userName" );
$userEmail = $request->getValue( "userEmail" );
$userUrl = $request->getValue( "userUrl" );
}else{
$commentText = $request->getValue( "postText" );
$commentTopic = $request->getValue( "postTopic" );
$userName = $request->getValue( "postExtendedText" );
$userEmail = $request->getValue( "userEmail" );
$userUrl = $request->getValue( "userUrl" );
}
。。。。。
。。。。。