Sfoglia il codice sorgente

#4148 Build-in API support (comments form)

roman.lesnikov@gmail.com 3 anni fa
parent
commit
e41277ecba
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      modules/base/general/classes/BxBaseModGeneralModule.php

+ 1 - 1
modules/base/general/classes/BxBaseModGeneralModule.php

@@ -3461,7 +3461,7 @@ class BxBaseModGeneralModule extends BxDolModule
         if (bx_is_api())
             return [
                 ['id' => 1, 'type' => 'browse', 'data' => $oCmts->getCommentsBlockAPI(array(), array('in_designbox' => false, 'show_empty' => false))],
-                ['id' => 2, 'type' => 'form', 'data' => $oCmts->_getFormObject()->getCodeAPI(), 'request' => ['url' => '/cmts.php', 'immutable' => true]]
+                ['id' => 2, 'type' => 'form', 'data' => $oCmts->getFormObject()->getCodeAPI(), 'request' => ['url' => '/cmts.php', 'immutable' => true]]
             ];
 
         return $oCmts->getCommentsBlock(array(), array('in_designbox' => false, 'show_empty' => false));