From: moodler Date: Thu, 3 Sep 2009 08:27:30 +0000 (+0000) Subject: $PAGE MDL-19077 fix call to set_url to make it handle https X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f716d0dd3d9d9e7ae6e2b2d51c724b6c032b6b76;p=moodle.git $PAGE MDL-19077 fix call to set_url to make it handle https --- diff --git a/login/index.php b/login/index.php index c8efd9a01c..e7c23739be 100644 --- a/login/index.php +++ b/login/index.php @@ -11,9 +11,7 @@ $context = get_context_instance(CONTEXT_SYSTEM); $PAGE->set_course($SITE); - $PAGE->set_url($CFG->wwwroot.'/login/index.php'); - - //initialize variables +/// Initialize variables $errormsg = ''; $errorcode = 0; @@ -38,6 +36,8 @@ //HTTPS is potentially required in this page httpsrequired(); + $PAGE->set_url("$CFG->httpswwwroot/login/index.php"); + /// Define variables used in page if (!$site = get_site()) { print_error('siteisnotdefined', 'debug');