diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-27 12:18:01 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-27 12:18:01 +0200 |
commit | dea0d20a9ad0270896e57a7459d6276798658d7c (patch) | |
tree | e7d20d756d1e802eccb524d84d37d3d015ad5bc9 /apps/files_sharing/public.php | |
parent | 5bfff6c56e8d4d911c7a5265bb5462c7122ca495 (diff) | |
download | nextcloud-server-dea0d20a9ad0270896e57a7459d6276798658d7c.tar.gz nextcloud-server-dea0d20a9ad0270896e57a7459d6276798658d7c.zip |
fix delete and sort files
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 105e94f1140..143edd23c49 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -187,7 +187,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) { $tmpl->assign('uidOwner', $uidOwner);
$tmpl->assign('dir', basename($dir));
$tmpl->assign('filename', basename($path));
- $tmpl->assign('mimetype', OC_Filesystem::getMimeType($path));
+ $tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path));
$tmpl->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true)));
if (isset($_GET['path'])) {
$getPath = $_GET['path'];
@@ -200,7 +200,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) { $tmpl->assign('uidOwner', $uidOwner);
$tmpl->assign('dir', dirname($path));
$tmpl->assign('filename', basename($path));
- $tmpl->assign('mimetype', OC_Filesystem::getMimeType($path));
+ $tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path));
if ($type == 'file') {
$tmpl->assign('downloadURL', OCP\Util::linkToPublic('files').'&file='.urlencode($_GET['file']).'&download', false);
} else {
|