aboutsummaryrefslogtreecommitdiff
path: root/app/class/media.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-10 12:23:42 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-10 12:23:42 +0100
commitf3756d0b076a81442e9512b2d3e39de47082cd22 (patch)
tree194762fec9dd7d6d51e92e080b0b40a5b1b78d3b /app/class/media.php
parent7cafbbb9d9ec14462fe8ce0eda86c42d22367757 (diff)
downloadwcms-f3756d0b076a81442e9512b2d3e39de47082cd22.tar.gz
wcms-f3756d0b076a81442e9512b2d3e39de47082cd22.zip
media-clean
Diffstat (limited to 'app/class/media.php')
-rw-r--r--app/class/media.php12
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;
}