Alex Trofimov 13 лет назад
Родитель
Сommit
ae286830f8

+ 1 - 1
modules/boonex/notes/classes/BxNotesModule.php

@@ -153,7 +153,7 @@ class BxNotesModule extends BxDolModule {
 		if(!$oCmts->isEnabled())
 			return false;
 
-        return $oCmts->getCommentsBlock();
+        return $oCmts->getCommentsBlock(0, 0, false);
     }
 
     public function serviceEntityAuthor ($iContentId = 0) {

+ 6 - 1
template/scripts/BxBaseCmtsView.php

@@ -108,7 +108,12 @@ class BxBaseCmtsView extends BxDolCmts {
     		'script' => $this->getScript()
     	));
 
-    	return $bInDesignbox ? DesignBoxContent($sCaption, $sContent, BX_DB_PADDING_DEF, $this->_getControlsBox()) : $sContent;
+    	return $bInDesignbox ? DesignBoxContent($sCaption, $sContent, BX_DB_PADDING_DEF, $this->_getControlsBox()) : array(
+            'title' => $sCaption, 
+            'content' => $sContent,
+            'designbox_id' => BX_DB_PADDING_DEF,
+            'menu' => $this->_getControlsBox(),
+        ); 
     }
 
     /**