Przeglądaj źródła

Ticket #4558 - Build-in API support: Decode data API.

AntonLV 2 lat temu
rodzic
commit
96f18cc271

+ 3 - 4
modules/base/general/classes/BxBaseModGeneralModule.php

@@ -661,10 +661,9 @@ class BxBaseModGeneralModule extends BxDolModule
     public function serviceGetSearchResultUnit ($iContentId, $sUnitTemplate = '')
     public function serviceGetSearchResultUnit ($iContentId, $sUnitTemplate = '')
     {
     {
         $aContentInfo = $this->_oDb->getContentInfoById($iContentId);
         $aContentInfo = $this->_oDb->getContentInfoById($iContentId);
-        if (bx_is_api())
-            return $this->decodeDataAPI($aContentInfo);
-        
-        
+        if($this->_bIsApi)
+            return $this->getDataAPI($aContentInfo);
+
         if(empty($aContentInfo))
         if(empty($aContentInfo))
             return '';
             return '';