diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 00:20:45 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 00:20:45 +0200 |
commit | 93b63cf3755d3f1295c976c308b81c6340883abb (patch) | |
tree | 8e8a7413ea75723b7d21e18661a10842d1970bf1 /apps/files/index.php | |
parent | e48f511606a1ef64aa39099055dd6ae437f45d03 (diff) | |
download | nextcloud-server-93b63cf3755d3f1295c976c308b81c6340883abb.tar.gz nextcloud-server-93b63cf3755d3f1295c976c308b81c6340883abb.zip |
ported the rest of the OC_Helper calls
Diffstat (limited to 'apps/files/index.php')
-rwxr-xr-x | apps/files/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/index.php b/apps/files/index.php index 9634a725866..3f97317fc5f 100755 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -80,8 +80,8 @@ $breadcrumbNav = new OC_Template( "files", "part.breadcrumb", "" ); $breadcrumbNav->assign( "breadcrumb", $breadcrumb ); $breadcrumbNav->assign( "baseURL", OCP\Util::linkTo("files", "index.php")."?dir="); -$upload_max_filesize = OC_Helper::computerFileSize(ini_get('upload_max_filesize')); -$post_max_size = OC_Helper::computerFileSize(ini_get('post_max_size')); +$upload_max_filesize = OCP\Util::computerFileSize(ini_get('upload_max_filesize')); +$post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size')); $maxUploadFilesize = min($upload_max_filesize, $post_max_size); $freeSpace=OC_Filesystem::free_space('/'); @@ -95,7 +95,7 @@ $tmpl->assign( 'dir', $dir); $tmpl->assign( 'readonly', !OC_Filesystem::is_writable($dir)); $tmpl->assign( "files", $files ); $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); -$tmpl->assign( 'uploadMaxHumanFilesize', OC_Helper::humanFileSize($maxUploadFilesize)); +$tmpl->assign( 'uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); $tmpl->assign( 'allowZipDownload', intval(OC_Config::getValue('allowZipDownload', true))); $tmpl->printPage(); |