Merge pull request #345 from owncloud/fix-viewer
Add namespace to constant
This commit is contained in:
commit
e6270b8689
@ -16,7 +16,7 @@ namespace OCA\Documents;
|
||||
|
||||
$path = Helper::getArrayValueByKey($_GET, 'path');
|
||||
if (!empty($path)){
|
||||
if (\OC\Files\Filesystem::getMimeType($path)!==Filter_Office::NATIVE_MIMETYPE){
|
||||
if (\OC\Files\Filesystem::getMimeType($path) !== \OCA\Documents\Filter\Office::NATIVE_MIMETYPE){
|
||||
$fileInfo = \OC\Files\Filesystem::getFileInfo($path);
|
||||
$file = new File($fileInfo->getId());
|
||||
$genesis = new Genesis($file);
|
||||
|
Loading…
x
Reference in New Issue
Block a user