[pLog-svn] r2512 - plog/trunk/class/security
jondaley at devel.plogworld.net
jondaley at devel.plogworld.net
Thu Sep 22 02:34:24 GMT 2005
Author: jondaley
Date: 2005-09-22 02:34:23 +0000 (Thu, 22 Sep 2005)
New Revision: 2512
Modified:
plog/trunk/class/security/commentfilter.class.php
Log:
added localized string. fixes: #711
Modified: plog/trunk/class/security/commentfilter.class.php
===================================================================
--- plog/trunk/class/security/commentfilter.class.php 2005-09-22 01:25:56 UTC (rev 2511)
+++ plog/trunk/class/security/commentfilter.class.php 2005-09-22 02:34:23 UTC (rev 2512)
@@ -58,7 +58,10 @@
$topicSize = strlen($request->getValue( "commentTopic" ));
if( $commentSize >= $maxSize || $topicSize >= $maxSize ) {
- $result = new PipelineResult( false, COMMENT_FILTER_MAXIMUM_SIZE_EXCEEDED, "The comment is too big" );
+ $plr = $this->getPipelineRequest();
+ $bi = $plr->getBlogInfo();
+ $locale = $bi->getLocale();
+ $result = new PipelineResult( false, COMMENT_FILTER_MAXIMUM_SIZE_EXCEEDED, $locale->tr("error_comment_too_big" ) );
return $result;
}
More information about the pLog-svn
mailing list