update v 1.0.7.5
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
<?php namespace Unisharp\Laravelfilemanager\controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Unisharp\Laravelfilemanager\controllers\Controller;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Support\Facades\Input;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Str;
|
||||
use Lang;
|
||||
|
||||
@@ -22,7 +21,7 @@ class RenameController extends LfmController {
|
||||
$old_name = Input::get('file');
|
||||
$new_name = Input::get('new_name');
|
||||
|
||||
$file_path = parent::getPath();
|
||||
$file_path = parent::getPath('directory');
|
||||
$thumb_path = parent::getPath('thumb');
|
||||
|
||||
$old_file = $file_path . $old_name;
|
||||
@@ -42,10 +41,10 @@ class RenameController extends LfmController {
|
||||
File::move($old_file, $new_file);
|
||||
return 'OK';
|
||||
}
|
||||
|
||||
|
||||
File::move($old_file, $new_file);
|
||||
|
||||
if (Session::get('lfm_type') == 'Images') {
|
||||
if ('Images' === $this->file_type) {
|
||||
File::move($thumb_path . $old_name, $thumb_path . $new_name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user