mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正File类
This commit is contained in:
@@ -161,7 +161,7 @@ class File extends SplFileObject
|
||||
$savename .= '.' . pathinfo($this->getInfo('name'), PATHINFO_EXTENSION);
|
||||
}
|
||||
} elseif ('' === $savename) {
|
||||
$savename = $this->getFilename();
|
||||
$savename = $this->getInfo('name');
|
||||
}
|
||||
return $savename;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user