Browse Source

Feature #2484 additional language use variables and hide css and HotPotatoes folders

Juan Carlos Raña 14 years ago
parent
commit
befdfafd0a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      main/document/document.php

+ 6 - 1
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 = '';