update v 1.0.7.5

This commit is contained in:
Sujit Prasad
2016-06-13 20:41:55 +05:30
parent aa9786d829
commit 283d97e3ea
5078 changed files with 339851 additions and 175995 deletions

View File

@@ -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);
}