[Finder] Fix SplFileInfo::getContents isn't working with ssh2 protocol
This commit is contained in:
parent
f4788121eb
commit
849f3ed7e9
|
@ -65,7 +65,7 @@ class SplFileInfo extends \SplFileInfo
|
|||
public function getContents()
|
||||
{
|
||||
$level = error_reporting(0);
|
||||
$content = file_get_contents($this->getRealpath());
|
||||
$content = file_get_contents($this->getPathname());
|
||||
error_reporting($level);
|
||||
if (false === $content) {
|
||||
$error = error_get_last();
|
||||
|
|
Reference in New Issue