Procházet zdrojové kódy

Build-in API support #4148

roman.lesnikov@gmail.com před 3 roky
rodič
revize
4b578b34a1

+ 1 - 1
inc/classes/BxDolDb.php

@@ -1327,7 +1327,7 @@ BxDolDb::getInstance();
 
 function getParam($sParamName, $bUseCache = true)
 {
-    if (bx_is_api())
+    if (bx_is_api() && $sParamName == 'permalinks_seo_links')
         return true;
     
     $oObj = BxDolDb::getInstance();

+ 1 - 0
template/scripts/BxBaseServicePages.php

@@ -37,6 +37,7 @@ class BxBaseServicePages extends BxDol
     public function serviceGetPageByRequest ($sRequest, $sBlocks = '', $sParams = '')
     {
         $mixed = null;
+
         if (substr_count($sRequest, 'page/')> 0){
             $_GET['i'] = str_replace('page/', '', $sRequest);
             $aParams = json_decode($sParams, true);