[xoops-cvslog 5930] CVS update: xoops2jp/html/modules/legacy/admin/forms

Back to archive index

Minahito minah****@users*****
2006年 11月 24日 (金) 13:58:09 JST


Index: xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php
diff -u xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php:1.1.2.3 xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php:1.1.2.4
--- xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php:1.1.2.3	Sun Oct 15 02:18:39 2006
+++ xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php	Fri Nov 24 13:58:09 2006
@@ -112,7 +112,6 @@
 	function update(&$obj)
 	{
 		$obj->set('bid', $this->get('bid'));
-		$obj->set('options', implode('|', $this->get('options')));
 		$obj->set('title', $this->get('title'));
 		$obj->set('side', $this->get('side'));
 		$obj->set('weight', $this->get('weight'));
@@ -120,6 +119,18 @@
 
 		$obj->set('last_modified', time());
 		
+		//
+		// Update options (XOOPS2 compatible)
+		//
+		$optionArr = $this->get('options');
+		for ($i = 0; $i < count($optionArr); $i++) {
+			if (is_array($optionArr[$i])) {
+				$optionArr[$i] = implode($optionArr[$i]);
+			}
+		}
+		
+		$obj->set('options', implode('|', $optionArr));
+		
 		$obj->mBmodule = array();
 		$handler =& xoops_getmodulehandler('block_module_link', 'legacy');
 		foreach ($this->get('bmodule') as $mid) {


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