diff options
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/template.php b/lib/template.php index efa8dde8b9d..bdb2ebab03b 100644 --- a/lib/template.php +++ b/lib/template.php @@ -37,6 +37,20 @@ function image_path( $app, $file ){ return OC_HELPER::imagePath( $app, $file ); } +/** + * + */ +function mimetype_icon( $mimetype ){ + return OC_HELPER::mimetypeIcon( $app, $file ); +} + +/** + * + */ +function human_file_size( $bytes ){ + return OC_HELPER::humanFileSize( $bytes ); +} + class OC_TEMPLATE{ private $renderas; // Create a full page? private $application; // template Application |