Minahito
minah****@users*****
2007年 2月 26日 (月) 13:01:30 JST
Index: xoops2jp/html/core/XCube_ActionForm.class.php diff -u xoops2jp/html/core/XCube_ActionForm.class.php:1.1.2.6 xoops2jp/html/core/XCube_ActionForm.class.php:1.1.2.6.2.1 --- xoops2jp/html/core/XCube_ActionForm.class.php:1.1.2.6 Sat Jan 20 22:23:28 2007 +++ xoops2jp/html/core/XCube_ActionForm.class.php Mon Feb 26 13:01:30 2007 @@ -2,7 +2,7 @@ /** * * @package XCube - * @version $Id: XCube_ActionForm.class.php,v 1.1.2.6 2007/01/20 13:23:28 tom_g3x Exp $ + * @version $Id: XCube_ActionForm.class.php,v 1.1.2.6.2.1 2007/02/26 04:01:30 minahito Exp $ * @copyright Copyright 2005, 2006 XOOPS Cube Project <http://xoopscube.org/> * @license http://xoopscube.sourceforge.net/bsd_licenses.txt Modified BSD license * @@ -445,9 +445,8 @@ $message=$this->mMessages[$name]['message']; if(isset($this->mMessages[$name]['args'])) { - for($i=0;$i<count($this->mMessages[$name]['args']);$i++) { - $message=str_replace("{".$i."}",$this->mMessages[$name]['args'][$i],$message); - } + // Use an unity method. + $message = XCube_Utils::formatString($message, $this->mMessages[$name]['args']); } return $message;