From f716d0dd3d9d9e7ae6e2b2d51c724b6c032b6b76 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 3 Sep 2009 08:27:30 +0000 Subject: [PATCH] $PAGE MDL-19077 fix call to set_url to make it handle https --- login/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'); -- 2.39.5