File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
plugins/filesystem/local/src/Adapter Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -961,22 +961,13 @@ private function getLocalPath(string $path): string
961961 */
962962 private function getLocalThumbPaths (string $ path ): array
963963 {
964- $ normalizeDirectorySeparator = ['\\' , '/ ' , ': ' ];
964+ $ rootPath = str_replace (['\\' , '/ ' ], '/ ' , $ this ->rootPath );
965+ $ path = str_replace (['\\' , '/ ' ], '/ ' , $ path );
965966
966967 try
967968 {
968- $ fs = Path::check (
969- str_replace (
970- str_replace ($ normalizeDirectorySeparator , '/ ' , $ this ->rootPath ),
971- JPATH_ROOT . '/media/cache/com_media/thumbs/ ' . $ this ->filePath ,
972- str_replace ($ normalizeDirectorySeparator , '/ ' , $ path )
973- )
974- );
975- $ url = str_replace (
976- str_replace ($ normalizeDirectorySeparator , '/ ' , $ this ->rootPath ),
977- 'media/cache/com_media/thumbs/ ' . $ this ->filePath ,
978- str_replace ($ normalizeDirectorySeparator , '/ ' , $ path )
979- );
969+ $ fs = Path::check (str_replace ($ rootPath , JPATH_ROOT . '/media/cache/com_media/thumbs/ ' . $ this ->filePath , $ path ));
970+ $ url = str_replace ($ rootPath , 'media/cache/com_media/thumbs/ ' . $ this ->filePath , $ path );
980971
981972 return [
982973 'fs ' => $ fs ,
You can’t perform that action at this time.
0 commit comments