Merge pull request #17501 from tbartenstein/patch-1
Update fileinfo.php
This commit is contained in:
commit
31d62c10bf
2 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ class Test_OC_Files_App_Rename extends \Test\TestCase {
|
|||
$this->assertEquals('abcdef', $result['data']['etag']);
|
||||
$this->assertFalse(isset($result['data']['tags']));
|
||||
$this->assertEquals('/', $result['data']['path']);
|
||||
$icon = \OC_Helper::mimetypeIcon('dir');
|
||||
$icon = \OC_Helper::mimetypeIcon('dir-external');
|
||||
$icon = substr($icon, 0, -3) . 'svg';
|
||||
$this->assertEquals($icon, $result['data']['icon']);
|
||||
}
|
||||
|
|
|
@ -252,7 +252,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
|
|||
$sid = $this->getStorage()->getId();
|
||||
if (!is_null($sid)) {
|
||||
$sid = explode(':', $sid);
|
||||
return ($sid[0] !== 'local' and $sid[0] !== 'home' and $sid[0] !== 'shared');
|
||||
return ($sid[0] !== 'home' and $sid[0] !== 'shared');
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue