From 260da1d43918cf80d116a5b08d0a65271449e323 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 3 Sep 2015 13:20:32 +0200 Subject: [PATCH] Space available code commented (issue when handling a lot of files) + icon changed. --- main/document/document.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/document/document.php b/main/document/document.php index b3d71c694b..f7ba6914a2 100755 --- a/main/document/document.php +++ b/main/document/document.php @@ -43,7 +43,7 @@ api_protect_course_group(GroupManager::GROUP_TOOL_DOCUMENTS); DocumentManager::removeGeneratedAudioTempFile(); -if( +if ( isset($_SESSION['temp_realpath_image']) && !empty($_SESSION['temp_realpath_image']) && file_exists($_SESSION['temp_realpath_image']) @@ -1510,11 +1510,11 @@ $actions .= '
'; /* GO TO PARENT DIRECTORY */ if ($curdirpath != '/' && $curdirpath != $group_properties['directory'] && !$is_certificate_mode) { - + $actions .= ''; $actions .= Display::return_icon('folder_up.png', get_lang('Up'), '', ICON_SIZE_MEDIUM); $actions .= ''; - + } if ($is_certificate_mode && $curdirpath != '/certificates') { @@ -1646,7 +1646,7 @@ if ($image_present && !isset($_GET['keyword'])) { if (api_is_allowed_to_edit(null, true)) { $actions .= Display::url( - Display::return_icon('percentage.png', get_lang('DocumentQuota'), '', ICON_SIZE_MEDIUM), + Display::return_icon('statistics.png', get_lang('DocumentQuota'), '', ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH).'document/document_quota.php?'.api_get_cidreq() ); } @@ -1986,7 +1986,7 @@ echo $dirForm; echo $selector; $table->display(); - +/* if (count($documentAndFolders) > 1) { if ($is_allowed_to_edit || $group_member_with_upload_rights) { // Getting the course quota @@ -2003,7 +2003,7 @@ if (count($documentAndFolders) > 1) { $already_consumed_space_course ); } -} +}*/ if (!empty($table_footer)) { Display::display_warning_message($table_footer); }