修正File类

This commit is contained in:
thinkphp
2016-05-21 09:26:56 +08:00
parent e1abc0844b
commit 2005296267

View File

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