Changeset 96


Ignore:
Timestamp:
Sep 11, 2014 5:03:39 PM (11 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/api.violet.vn/www/apps/platform/modules/space/actions/actions.class.php

    r95 r96  
    262262    $destination = $this->getRequestParameter('destination');
    263263    $data = $this->getRequestParameter('data');
    264         $aryNewTree = array();
     264        $aryNewTree = array('DIRECTORIES' => array(),'FILES' => array(), );
    265265    $aryTreeObj = json_decode($data);
    266      
    267     /* if (is_array($aryTreeObj)) {
     266   
     267    if (is_array($aryTreeObj)) {
    268268        foreach ($aryTreeObj as $key => $treeObj){;
    269269                if ($treeObj->type == 'directory') {
    270270                        //$this->CopySpaceDir($treeObj, $destination, $userId, $aryNewTree);
    271                         $aryNewTree["DIRECTORIES"][] = $treeObj->id;
     271                        $aryNewTree['DIRECTORIES'][] = $treeObj->id;
    272272                }
    273273                else {
     
    276276                }
    277277        }
    278     } */
     278    }
    279279   
    280280    //var_export($destination, TRUE);
     
    282282    $this->errMsg = '';
    283283    $this->errCode = '';
    284     $this->aryNewTree = $data;
     284    $this->aryNewTree = $aryNewTree;
    285285  }
    286286
Note: See TracChangeset for help on using the changeset viewer.