Преглед на файлове

[svn r15462] Notices & warnings msgs avoided

Julio Montoya преди 17 години
родител
ревизия
0bb266440d
променени са 2 файла, в които са добавени 11 реда и са изтрити 7 реда
  1. 6 3
      main/install/index.php
  2. 5 4
      main/work/work.php

+ 6 - 3
main/install/index.php

@@ -70,10 +70,13 @@ elseif ( isset($_SESSION['install_language']) && $_SESSION['install_language'] )
 $charset = '';
 //force ISO-8859-15 for European languages. Leave Apache determine the encoding for others (HTML declaring UTF-8)
 $euro_langs = array('english','french','french_KM','french_corporate','french_org','dutch','spanish','german','italian','greek','danish','swedish','norwegian','polish','galician','catalan','czech','finnish');
-if(in_array($install_language,$euro_langs))
+if (isset($install_language))
 {
-	$charset = 'ISO-8859-15';
-	header('Content-Type: text/html; charset='. $charset);
+	if(in_array($install_language,$euro_langs))
+	{
+		$charset = 'ISO-8859-15';
+		header('Content-Type: text/html; charset='. $charset);
+	}
 }
 
 require_once('install_upgrade.lib.php'); //also defines constants

+ 5 - 4
main/work/work.php

@@ -27,7 +27,7 @@
 * 	@author Patrick Cool <patrick.cool@UGent.be>, Ghent University - ability for course admins to specify wether uploaded documents are visible or invisible by default.
 * 	@author Roan Embrechts, code refactoring and virtual course support
 * 	@author Frederic Vauthier, directories management
-*  	@version $Id: work.php 15082 2008-04-25 03:35:07Z yannoo $
+*  	@version $Id: work.php 15462 2008-05-27 16:34:55Z juliomontoya $
 *
 * 	@todo refactor more code into functions, use quickforms, coding standards, ...
 */
@@ -90,9 +90,6 @@ $language_file = array (
 	'admin'
 );
 
-// Section (for the tabs)
-$this_section = SECTION_COURSES;
-
 // @todo why is this needed?
 //session
 if (isset ($_GET['id_session'])) {
@@ -125,6 +122,10 @@ function updateDocumentTitle(value){
 */
 require ('../inc/global.inc.php');
 
+// Section (for the tabs)
+$this_section = SECTION_COURSES;
+
+
 require_once (api_get_path(LIBRARY_PATH) . "course.lib.php");
 require_once (api_get_path(LIBRARY_PATH) . "debug.lib.inc.php");
 require_once (api_get_path(LIBRARY_PATH) . "events.lib.inc.php");