Skip to content

Commit

Permalink
Merge pull request #6 from itxq/dev
Browse files Browse the repository at this point in the history
重命名BUG修复
  • Loading branch information
itxq authored May 20, 2020
2 parents 535f632 + 7afcd2f commit aee39c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// +----------------------------------------------------------------------
// | 默认配置
// | CkFinder 配置
// +----------------------------------------------------------------------

use itxq\ckfinder\CkFinder;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/AutoRename.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function autoRename($name, $extension = '')
if (!empty($extension) && $this->config[self::FILE] === false) {
return $name;
}
$name = PinYin::make()->turn($name, false, '', 'utf-8');
$name = PinYin::make()->turn($name, false, false, '_', 'utf-8');
// uuid 用于名称为空时
$name = empty($name) ? $this->uuid() : strtolower($name);
if ($name === '.' . $extension) {
Expand Down

0 comments on commit aee39c1

Please sign in to comment.