Changeset 937


Ignore:
Timestamp:
Jul 8, 2015 5:41:15 PM (10 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/www/deploy/api/platform/modules/space/actions/actions.class.php

    r936 r937  
    154154
    155155        $ext = strtolower($tblfile->getFileType());
    156         $filePath="";
    157         $thumbnail="";
    158156        if (in_array($ext, array("jpg","png","jpeg","gif","")))
    159157        {
    160                 $names = explode(".", $name);
    161                 $filePath = $tblres->getFullFilename();
    162                 $filePath = str_replace($_SERVER['DOCUMENT_ROOT'], '', $filePath);
    163                 $thumbnail = str_replace($name, "", $fileName). $names[0].'_thumb.'.$ext;
    164                 $thumbnail=   ltrim ($thumbnail, '/');
     158                $names = explode(".", $fileName);
     159                $filePath = $res->getFullFilename();
     160                $filePath = str_replace($_SERVER['DOCUMENT_ROOT'], "http://".$_SERVER['HTTP_HOST'], $filePath);
     161                $filePath = str_replace($fileName, '', $filePath);
     162                $thumbnail = $filePath. $names[0].'_thumb.'.$ext;
     163                //$thumbnail=   ltrim ($thumbnail, '/');
    165164        }
    166165
Note: See TracChangeset for help on using the changeset viewer.