Просмотр исходного кода

Ticket #2241 - Channels: Pass params to content module.

AntonLV 7 лет назад
Родитель
Сommit
b568c7dbb8

+ 1 - 1
modules/base/text/classes/BxBaseModTextModule.php

@@ -508,7 +508,7 @@ class BxBaseModTextModule extends BxBaseModGeneralModule implements iBxDolConten
         $CNF = &$this->_oConfig->CNF;
 
         $iProfile = bx_get_logged_profile_id();
-        $bDynamic = isset($aBrowseParams['dynamic_mode']) && $aBrowseParams['dynamic_mode'] === true;
+        $bDynamic = isset($aBrowseParams['dynamic_mode']) && (bool)$aBrowseParams['dynamic_mode'] === true;
 
         $sPolls = '';
         $aPolls = $this->_oDb->getPolls(array('type' => 'content_id', 'content_id' => (int)$aContentInfo[$CNF['FIELD_ID']]));

+ 8 - 1
modules/boonex/channels/classes/BxCnlModule.php

@@ -202,7 +202,14 @@ class BxCnlModule extends BxBaseModGroupsModule
         if(!BxDolRequest::serviceExists($aEventContent['module_name'], 'get_timeline_post'))
             return false;      
 
-        return BxDolService::call($aEventContent['module_name'], 'get_timeline_post', array(array('id' => $aEvent['id'], 'owner_id' => $aEventContent['author_id'], 'object_id' => $aEventContent['content_id'])));
+        return BxDolService::call($aEventContent['module_name'], 'get_timeline_post', array(
+            array(
+                'id' => $aEvent['id'], 
+                'owner_id' => $aEventContent['author_id'], 
+                'object_id' => $aEventContent['content_id']
+            ), 
+            $aBrowseParams
+        ));
     }
     
     /**