From: Matthew Flaschen Date: Sat, 31 Aug 2013 05:53:43 +0000 (-0400) Subject: Remove dead code X-Git-Tag: 1.31.0-rc.0~18828^2 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=ab442912044814c61e1803bd9b572ec0952b0166;p=lhc%2Fweb%2Fwiklou.git Remove dead code Accidentally left in dabbbc7d2a88ceb9efce5742af05e848dbcaa66e Change-Id: I58e65ca7ad23d00992f66f3bcee879e662b62ef0 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 83a7d3f77a..bf9f5ac0b1 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2432,14 +2432,6 @@ $templates * @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( "

{$link}

\n" );