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

#52 - Get rid of duplicates in code (Developer).

AntonLV 12 лет назад
Родитель
Сommit
90e13fef6d
1 измененных файлов с 2 добавлено и 16 удалено
  1. 2 16
      modules/boonex/developer/classes/BxDevFormsForms.php

+ 2 - 16
modules/boonex/developer/classes/BxDevFormsForms.php

@@ -122,22 +122,8 @@ class BxDevFormsForms extends BxTemplStudioFormsForms {
     public function performActionExport() {
         $sContentInsert = $sContentDelete = "";
 
-        $aIds = bx_get('ids');
-        if(!$aIds || !is_array($aIds)) {
-            $iId = (int)bx_get('id');
-            if(!$iId) {
-                $this->_echoResultJson(array());
-                exit;
-            }
-
-            $aIds = array($iId);
-        }
-
-        $iId = $aIds[0];
-
-        $aForm = array();
-        $this->oDb->getForms(array('type' => 'by_id', 'value' => $iId), $aForm, false);
-        if(empty($aForm) || !is_array($aForm)){
+    	$aForm = $this->_getItem('getForms');
+        if($aForm === false) {
             $this->_echoResultJson(array());
             exit;
         }