[xoops-cvslog 2802] CVS update: xoops2jp/html/modules/base/class

Back to archive index

Minahito minah****@users*****
2006年 4月 14日 (金) 15:02:09 JST


Index: xoops2jp/html/modules/base/class/comment.php
diff -u xoops2jp/html/modules/base/class/comment.php:1.1.2.7 xoops2jp/html/modules/base/class/comment.php:1.1.2.8
--- xoops2jp/html/modules/base/class/comment.php:1.1.2.7	Tue Apr 11 12:10:19 2006
+++ xoops2jp/html/modules/base/class/comment.php	Fri Apr 14 15:02:09 2006
@@ -26,10 +26,10 @@
 		$this->initVar('com_status', XOBJ_DTYPE_INT, '1', true);
 		$this->initVar('com_exparams', XOBJ_DTYPE_STRING, '', true, 255);
 		$this->initVar('dohtml', XOBJ_DTYPE_BOOL, '0', true);
-		$this->initVar('dosmiley', XOBJ_DTYPE_BOOL, '0', true);
-		$this->initVar('doxcode', XOBJ_DTYPE_BOOL, '0', true);
-		$this->initVar('doimage', XOBJ_DTYPE_BOOL, '0', true);
-		$this->initVar('dobr', XOBJ_DTYPE_BOOL, '0', true);
+		$this->initVar('dosmiley', XOBJ_DTYPE_BOOL, '1', true);
+		$this->initVar('doxcode', XOBJ_DTYPE_BOOL, '1', true);
+		$this->initVar('doimage', XOBJ_DTYPE_BOOL, '1', true);
+		$this->initVar('dobr', XOBJ_DTYPE_BOOL, '1', true);
 	}
 	
 	/**
@@ -55,6 +55,17 @@
 		$handler =& xoops_getmodulehandler('commentstatus', 'base');
 		$this->mStatus =& $handler->get($this->get('com_status'));
 	}
+	
+	function getVar($key)
+	{
+		if ($key == 'com_text') {
+			$ts =& MyTextSanitizer::getInstance();
+			return $ts->displayTarea($this->get($key), $this->get('dohtml'), $this->get('dosmiley'), $this->get('doxcode'), $this->get('doimage'), $this->get('dobr'));
+		}
+		else {
+			return parent::getVar($key);
+		}
+	}
 }
 
 class BaseCommentHandler extends XoopsObjectGenericHandler


xoops-cvslog メーリングリストの案内
Back to archive index