diff --git a/src/controllers/LfmController.php b/src/controllers/LfmController.php index 39ca1a54..d0adc2d2 100644 --- a/src/controllers/LfmController.php +++ b/src/controllers/LfmController.php @@ -142,7 +142,7 @@ public function getUrl($type = null) $url = str_replace('\\','/',$url); - return $url . '/'; + return $url; } diff --git a/src/views/script.blade.php b/src/views/script.blade.php index a9e7f487..93367532 100644 --- a/src/views/script.blade.php +++ b/src/views/script.blade.php @@ -347,10 +347,6 @@ function getFileUrl(file) { item_url = file_url; @endif - if (path.indexOf(ds) === 0) { - path = path.substring(1); - } - if (path != ds) { item_url = item_url + path + ds; } @@ -383,7 +379,7 @@ function getFileUrl(file) { window.close(); } } else { - alert('Fail to get image/file url, please contact developers.'); + alert('Editor not found, cannot apply image.'); } } //end useFile