Permalink
Browse files

MDL-26698 use https for help ajax loginhttps pages

  • Loading branch information...
skodak committed Mar 13, 2011
1 parent c096042 commit 69542fb3af642d8612032a4bed748dd52d4eb8de
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/outputrenderers.php
View
@@ -1648,8 +1648,8 @@ protected function render_old_help_icon(old_help_icon $helpicon) {
$output .= $helpicon->linktext;
}
- // now create the link around it
- $url = new moodle_url('/help.php', array('component' => $helpicon->component, 'identifier' => $helpicon->helpidentifier, 'lang'=>current_language()));
+ // now create the link around it - we need https on loginhttps pages
+ $url = new moodle_url($CFG->httpswwwroot.'/help.php', array('component' => $helpicon->component, 'identifier' => $helpicon->helpidentifier, 'lang'=>current_language()));
// note: this title is displayed only if JS is disabled, otherwise the link will have the new ajax tooltip
$title = get_string('helpprefix2', '', trim($helpicon->title, ". \t"));
@@ -1712,8 +1712,8 @@ protected function render_help_icon(help_icon $helpicon) {
$output .= $helpicon->linktext;
}
- // now create the link around it
- $url = new moodle_url('/help.php', array('component' => $helpicon->component, 'identifier' => $helpicon->identifier, 'lang'=>current_language()));
+ // now create the link around it - we need https on loginhttps pages
+ $url = new moodle_url($CFG->httpswwwroot.'/help.php', array('component' => $helpicon->component, 'identifier' => $helpicon->identifier, 'lang'=>current_language()));
// note: this title is displayed only if JS is disabled, otherwise the link will have the new ajax tooltip
$title = get_string('helpprefix2', '', trim($title, ". \t"));

0 comments on commit 69542fb

Please sign in to comment.