Mattflaschen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/82080
Change subject: Remove dead code
......................................................................
Remove dead code
Accidentally left in dabbbc7d2a88ceb9efce5742af05e848dbcaa66e
Change-Id: I58e65ca7ad23d00992f66f3bcee879e662b62ef0
---
M includes/OutputPage.php
1 file changed, 0 insertions(+), 8 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/80/82080/1
diff --git a/includes/OutputPage.php b/includes/OutputPage.php
index 83a7d3f..bf9f5ac 100644
--- a/includes/OutputPage.php
+++ b/includes/OutputPage.php
@@ -2432,14 +2432,6 @@
* @param $options Options array to pass to Linker
*/
public function addReturnTo( $title, $query = array(), $text = null,
$options = array() ) {
- if ( in_array( 'http', $options ) ) {
- $proto = PROTO_HTTP;
- } elseif ( in_array( 'https', $options ) ) {
- $proto = PROTO_HTTPS;
- } else {
- $proto = PROTO_RELATIVE;
- }
-
$link = $this->msg( 'returnto' )->rawParams(
Linker::link( $title, $text, array(), $query, $options
) )->escaped();
$this->addHTML( "<p id=\"mw-returnto\">{$link}</p>\n" );
--
To view, visit https://gerrit.wikimedia.org/r/82080
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I58e65ca7ad23d00992f66f3bcee879e662b62ef0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits