AndyRussG has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/108290


Change subject: Fix protocol-relative URL for enrolling students
......................................................................

Fix protocol-relative URL for enrolling students

Change-Id: I3f53a511a6c7639f6275e6ec278fe3112fa4afe5
---
M includes/actions/ViewCourseAction.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EducationProgram 
refs/changes/90/108290/1

diff --git a/includes/actions/ViewCourseAction.php 
b/includes/actions/ViewCourseAction.php
index 84ad239..1c5e5ab 100644
--- a/includes/actions/ViewCourseAction.php
+++ b/includes/actions/ViewCourseAction.php
@@ -422,7 +422,8 @@
                // URL for enroll link (not a live link, but rather text for 
pasting)
                $enrollLink = SpecialPage::getTitleFor(
                        'Enroll', $course->getField( 'title' ) . '/' .
-                       $course->getField( 'token' ) )->getFullUrl();
+                       $course->getField( 'token' ) )
+                       ->getFullUrl( '', false, PROTO_CANONICAL );
 
                $html .= Html::element(
                        'p',

-- 
To view, visit https://gerrit.wikimedia.org/r/108290
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3f53a511a6c7639f6275e6ec278fe3112fa4afe5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EducationProgram
Gerrit-Branch: master
Gerrit-Owner: AndyRussG <[email protected]>
Gerrit-Reviewer: Ragesoss <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to