Ignore:
Timestamp:
Apr 16, 2015 11:46:05 AM (10 years ago)
Author:
quyenla
Message:

download fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/www/deploy/20150304/application/modules/ajax/controllers/privatecontent.php

    r889 r892  
    7373                                foreach($this->xml->tree->filelist->file as $key=>$value){
    7474                                        //$fileUrl = dirname(dirname(dirname($value->_param['fileurl'])));
    75                                         $fileUrl = $value->_param['fileurl'];
    76                                         $aryFiles[] = array('id' => $value->_param['id'], 'name' => $value->_value, 'parentID' => $value->_param['parentid'] == -1 ? 0:$value->_param['parentid'], 'minetype' => $value->_param['filetype'], 'size' => $value->_param['size'],'thumbnail' => $value->_param['thumbnail'],'fileurl' => $fileUrl);
     75                                        $fileUrl="";
     76                                        if ($value->_param['fileurl']!=""){
     77                                        $fileUrl = $this->config->item('api_url').$value->_param['fileurl'];
     78                                        }
     79                                        $thumbnail="";
     80                                        if ($value->_param['thumbnail']!=""){
     81                                        $thumbnail = $this->config->item('api_url').$value->_param['thumbnail'];
     82                                        }
     83                                        $aryFiles[] = array('id' => $value->_param['id'], 'name' => $value->_value, 'parentID' => $value->_param['parentid'] == -1 ? 0:$value->_param['parentid'], 'minetype' => $value->_param['filetype'], 'size' => $value->_param['size'],'thumbnail' => $thumbnail,'fileurl' => $fileUrl);
    7784                                }
    7885                        }else {
     
    161168        }
    162169
    163         public function upload() {
    164 
     170        public function test() {
     171            echo $this->vservices->actionExecute('test');
    165172        }
    166173}
Note: See TracChangeset for help on using the changeset viewer.