aboutsummaryrefslogtreecommitdiffstats
path: root/include/derivative.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/derivative.inc.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/derivative.inc.php b/include/derivative.inc.php
index c22e27573..282b500ec 100644
--- a/include/derivative.inc.php
+++ b/include/derivative.inc.php
@@ -42,10 +42,7 @@ final class SrcImage
}
elseif (!empty($infos['representative_ext']))
{
- $pi = pathinfo($infos['path']);
- $file_wo_ext = get_filename_wo_extension($pi['basename']);
- $this->rel_path = $pi['dirname'].'/pwg_representative/'
- .$file_wo_ext.'.'.$infos['representative_ext'];
+ $this->rel_path = original_to_representative($infos['path'], $infos['representative_ext']);
}
else
{