diff options
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; } |