From befdfafd0a1ce67c4fda06a784223572dadbc05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Mon, 3 Jan 2011 20:01:48 +0100 Subject: [PATCH] Feature #2484 additional language use variables and hide css and HotPotatoes folders --- main/document/document.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main/document/document.php b/main/document/document.php index 4f26530f07..02cff57db5 100755 --- a/main/document/document.php +++ b/main/document/document.php @@ -32,7 +32,7 @@ /* INIT SECTION */ // Language files that need to be included -$language_file = array('document', 'slideshow', 'gradebook'); +$language_file = array('document', 'slideshow', 'gradebook', 'create_course'); require_once '../inc/global.inc.php'; $this_section = SECTION_COURSES; @@ -824,6 +824,11 @@ if (isset($docs_and_folders) && is_array($docs_and_folders)) { if (($is_allowed_to_edit || $group_member_with_upload_rights) && count($docs_and_folders) > 1) { $row[] = $id['path']; } + + // Hide HotPotatoes and css folders + if(basename($id['path'])=='HotPotatoes_files' || basename($id['path'])=='css'){ + break; + } // Show the owner of the file only in groups $user_link = '';