Changeset 892 for pro-violet-viettel/www/deploy/20150304/application
- Timestamp:
- Apr 16, 2015 11:46:05 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/www/deploy/20150304/application/modules/ajax/controllers/privatecontent.php
r889 r892 73 73 foreach($this->xml->tree->filelist->file as $key=>$value){ 74 74 //$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); 77 84 } 78 85 }else { … … 161 168 } 162 169 163 public function upload() {164 170 public function test() { 171 echo $this->vservices->actionExecute('test'); 165 172 } 166 173 }
Note: See TracChangeset
for help on using the changeset viewer.