Index: branches/wmf/1.18wmf1/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -479,12 +479,18 @@ |
480 | 480 | // Get repo and build comment title (for url) |
481 | 481 | $url = $this->getCanonicalUrl(); |
482 | 482 | |
| 483 | + // Live hack: always make the URL use https: |
| 484 | + $url = str_replace( 'http:', 'https:', $url ); |
| 485 | + |
483 | 486 | foreach ( $res as $row ) { |
484 | 487 | $revision = CodeRevision::newFromRow( $this->repo, $row ); |
485 | 488 | $users = $revision->getCommentingUsers(); |
486 | 489 | |
487 | 490 | $rowUrl = $revision->getCanonicalUrl(); |
488 | 491 | |
| 492 | + // Live hack: always make the URL use https: |
| 493 | + $rowUrl = str_replace( 'http:', 'https:', $rowUrl ); |
| 494 | + |
489 | 495 | $revisionAuthor = $revision->getWikiUser(); |
490 | 496 | |
491 | 497 | $revisionCommitSummary = $revision->getMessage(); |
— | — | @@ -675,6 +681,9 @@ |
676 | 682 | |
677 | 683 | $url = $this->getCanonicalUrl( $commentId ); |
678 | 684 | |
| 685 | + // Live hack: always make the URL use https: |
| 686 | + $url = str_replace( 'http:', 'https:', $url ); |
| 687 | + |
679 | 688 | $this->sendCommentToUDP( $commentId, $text, $url ); |
680 | 689 | |
681 | 690 | return $commentId; |
— | — | @@ -1327,6 +1336,9 @@ |
1328 | 1337 | if( $wgCodeReviewUDPAddress ) { |
1329 | 1338 | if( is_null( $url ) ) { |
1330 | 1339 | $url = $this->getCanonicalUrl( $commentId ); |
| 1340 | + |
| 1341 | + // Live hack: always make the URL use https: |
| 1342 | + $url = str_replace( 'http:', 'https:', $url ); |
1331 | 1343 | } |
1332 | 1344 | |
1333 | 1345 | $line = wfMsg( 'code-rev-message' ) . " \00314(" . $this->repo->getName() . |
— | — | @@ -1347,6 +1359,9 @@ |
1348 | 1360 | if( $wgCodeReviewUDPAddress ) { |
1349 | 1361 | $url = $this->getCanonicalUrl(); |
1350 | 1362 | |
| 1363 | + // Live hack: always make the URL use https: |
| 1364 | + $url = str_replace( 'http:', 'https:', $url ); |
| 1365 | + |
1351 | 1366 | $line = wfMsg( 'code-rev-status' ) . " \00314(" . $this->repo->getName() . |
1352 | 1367 | ")\00303 " . RecentChange::cleanupForIRC( $wgUser->getName() ) . "\003 " . |
1353 | 1368 | /* Remove three apostrophes as they are intended for the parser */ |