Skip to content

Commit f7c389e

Browse files
committed
fixed some directory separator
1 parent 371e17c commit f7c389e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/controllers/LfmController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ private function formatLocation($location, $type = null, $get_thumb = false)
9494
$location .= $working_dir;
9595

9696
if ($type === 'directory' || $type === 'thumb') {
97-
$location .= DIRECTORY_SEPARATOR;
97+
$location .= '/';
9898
}
9999

100100
if ($type === 'thumb') {
101-
$location .= Config::get('lfm.thumb_folder_name') . DIRECTORY_SEPARATOR;
101+
$location .= Config::get('lfm.thumb_folder_name') . '/';
102102
}
103103

104104
return $location;
@@ -155,7 +155,7 @@ public function getFileName($file)
155155
$working_dir_start = $lfm_dir_start + strlen($this->file_location);
156156
$lfm_file_path = substr($file, $working_dir_start);
157157

158-
$arr_dir = explode(DIRECTORY_SEPARATOR, $lfm_file_path);
158+
$arr_dir = explode('/', $lfm_file_path);
159159
$arr_filename['short'] = end($arr_dir);
160160
$arr_filename['long'] = DIRECTORY_SEPARATOR . $lfm_file_path;
161161

src/views/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function download(file_name) {
422422
423423
function useFile(file) {
424424
var path = $('#working_dir').val();
425-
425+
alert(path);
426426
var item_url = image_url;
427427
428428
@if ("Images" !== $file_type)

0 commit comments

Comments
 (0)