summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 98a1b61)
raw | patch | inline | side by side (parent: 98a1b61)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sun, 10 Feb 2008 15:38:34 +0000 (15:38 +0000) | ||
committer | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sun, 10 Feb 2008 15:38:34 +0000 (15:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8795 594d385d-05f5-0310-b6e9-bd551577e9d8
html/helpviewer.php | patch | blob | history |
diff --git a/html/helpviewer.php b/html/helpviewer.php
index 511dc06676e4806f08294af1e238d8740a19ac0f..f3565cce13024a99361af173ed3743cfaace42b6 100644 (file)
--- a/html/helpviewer.php
+++ b/html/helpviewer.php
exit;
}
-/* Language setup */
-if ($config->data['MAIN']['LANG'] == ""){
- $lang= get_browser_language();
-} else {
- $lang= $config->data['MAIN']['LANG'];
-}
-
-$lang.=".UTF-8";
+$lang= get_browser_language();
putenv("LANGUAGE=");
putenv("LANG=$lang");
$display= ( $header.$smarty->fetch(get_template_path('help.tpl')));
echo $display;
unset($_SESSION['current_class_for_help']);
- exit();
+ exit();
}
-
+
/* Save filename */
$helpobject['file']= $str[($_SESSION['current_class_for_help'])]['FILE'];
* Display management
*/
+/* this raise a warning if the directory is not found */
+
$files = array();
-$f = opendir($helpdir);
-while($file = readdir($f)){
+$f = @opendir($helpdir);
+while($file = @readdir($f)){
$files[$file]=$file;
}
$header= "<!-- headers.tpl-->".$smarty->fetch(get_template_path('headers.tpl'));
/* I don't know why, but we must use utf8_encode to avoid dispplay errors */
- $display= ( $header.$smarty->fetch(get_template_path('help.tpl')));
+ $display= utf8_encode( $header.$smarty->fetch(get_template_path('help.tpl')));
echo $display;
}elseif(((empty($helpdir)))||($helpdir=="/")){
/* Generate Index and display it */