diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-10 12:23:42 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-10 12:23:42 +0100 |
commit | f3756d0b076a81442e9512b2d3e39de47082cd22 (patch) | |
tree | 194762fec9dd7d6d51e92e080b0b40a5b1b78d3b /app/class/media.php | |
parent | 7cafbbb9d9ec14462fe8ce0eda86c42d22367757 (diff) | |
download | wcms-f3756d0b076a81442e9512b2d3e39de47082cd22.tar.gz wcms-f3756d0b076a81442e9512b2d3e39de47082cd22.zip |
media-clean
Diffstat (limited to 'app/class/media.php')
-rw-r--r-- | app/class/media.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/class/media.php b/app/class/media.php index 0cbbd89..01dfd55 100644 --- a/app/class/media.php +++ b/app/class/media.php @@ -56,7 +56,17 @@ class Media public function getfullpath() { - return '/' . Config::basepath() . '/' . $this->path() . $this->id() . '.' . $this->extension(); + $fullpath = '/' . Config::basepath() . '/'. $this->path() . $this->id() . '.' . $this->extension(); + $fullpath = str_replace('\\', '/', $fullpath); + return $fullpath; + } + + public function getincludepath() + { + $includepath = $this->path() . $this->id() . '.' . $this->extension(); + $includepath = str_replace('\\', '/', $includepath); + $includepath = substr($includepath, 6); + return $includepath; } |