help.php: related to MDL-13816. Clean up the URLs used for help files by removing unused parameters.

This commit is contained in:
tjhunt
2009-03-30 06:11:32 +00:00
parent c3935adbe7
commit e79079deae
2 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ echo '<p class="helpindex"><a href="help.php?file=index.html">'. get_string('hel
// Offer a link to the alternative help file language
$currentlang = current_language();
if ($helpfound && ($foundlang != 'en_utf8' || ($forcelang == 'en_utf8' && current_language() != 'en_utf8'))) {
if ($file && $helpfound && ($foundlang != 'en_utf8' || ($forcelang == 'en_utf8' && current_language() != 'en_utf8'))) {
$url = new moodle_url();
if ($foundlang != 'en_utf8') {
$url->param('forcelang', 'en_utf8');