Index: branches/5.3.x/core/units/helpers/file_helper.php =================================================================== diff -u -N -r16111 -r16195 --- branches/5.3.x/core/units/helpers/file_helper.php (.../file_helper.php) (revision 16111) +++ branches/5.3.x/core/units/helpers/file_helper.php (.../file_helper.php) (revision 16195) @@ -1,6 +1,6 @@ $path ) { + $replaced_count = 0; + $relative_path = preg_replace('/^' . preg_quote(FULL_PATH, '/') . '/', '', $path, 1, $replaced_count); + + if ( $replaced_count === 1 ) { + $paths[$index] = $relative_path; + } + } + + return $paths; + } + + /** * Ensures, that new file will not overwrite any of previously created files with same name * * @param string $path