Skip to content

Commit

Permalink
MDL-26698 use https for help ajax loginhttps pages
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 13, 2011
1 parent c096042 commit 69542fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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"));
Expand Down

0 comments on commit 69542fb

Please sign in to comment.