[xoops-cvslog 2347] CVS update: xoops2jp/html/modules/base/admin/actions

Back to archive index

Minahito minah****@users*****
2006年 2月 21日 (火) 20:45:25 JST


Index: xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php
diff -u xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php:1.1.2.2
--- xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php:1.1.2.1	Thu Jan 26 01:17:36 2006
+++ xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php	Tue Feb 21 20:45:24 2006
@@ -24,9 +24,24 @@
 
 	function executeViewInput(&$controller, &$xoopsUser, &$render)
 	{
+		//
+		// Load children and load their module and commentater.
+		//
+		$handler =& xoops_getmodulehandler('comment');
+		$criteria =& new Criteria('com_pid', $this->mObject->get('com_id'));
+		$children =& $handler->getObjects($criteria);
+
+		if (count($children) > 0) {
+			foreach (array_keys($children) as $key) {
+				$children[$key]->loadModule();
+				$children[$key]->loadUser();
+			}
+		}
+
 		$render->setTemplateName("comment_delete.html");
 		$render->setAttribute('actionForm', $this->mActionForm);
 		$render->setAttribute('object', $this->mObject);
+		$render->setAttribute('children', $children);
 	}
 
 	function executeViewSuccess(&$controller, &$xoopsUser, &$render)


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