diff --git a/app/functions/fn.fs.php b/app/functions/fn.fs.php index d1aeec1..50a6e4a 100644 --- a/app/functions/fn.fs.php +++ b/app/functions/fn.fs.php @@ -1420,11 +1420,9 @@ function fn_get_public_files_path() */ function fn_get_rel_dir($dir) { - return str_replace( - rtrim(Registry::get('config.dir.root'), '\\/') . '/', - '', - $dir - ); + $dir = str_replace(Registry::get('config.dir.root') . '/', '', $dir); + + return $dir; } /**