Index: branches/5.2.x/core/units/helpers/file_helper.php =================================================================== diff -u -N -r16027 -r16129 --- branches/5.2.x/core/units/helpers/file_helper.php (.../file_helper.php) (revision 16027) +++ branches/5.2.x/core/units/helpers/file_helper.php (.../file_helper.php) (revision 16129) @@ -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