/** * Replace a part in each path * * @param string $source * @param string $target */ function redirect_img_dir($source, $target) { ImageRepo::replaceInAllPath($source, $target); }