From: Brion Vibber Date: Wed, 29 Nov 2006 21:32:28 +0000 (+0000) Subject: Undo oddity from r17987; function doesn't need to be using references here in php5... X-Git-Tag: 1.31.0-rc.0~55031 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=a58b7c94665b9eed80a009cea0b0a91155b90ca7;p=lhc%2Fweb%2Fwiklou.git Undo oddity from r17987; function doesn't need to be using references here in php5-land, just remove them and behave normally --- diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index eb48d2ccba..626922bbd5 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -172,8 +172,7 @@ class IPBlockForm { $user = User::newFromName( $this->BlockAddress ); if( is_object( $user ) ) { - $page = $user->getUserPage(); - $this->showLogFragment( $wgOut, $page ); + $this->showLogFragment( $wgOut, $user->getUserPage() ); } elseif( preg_match( '/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $this->BlockAddress ) ) { $this->showLogFragment( $wgOut, Title::makeTitle( NS_USER, $this->BlockAddress ) ); } @@ -282,7 +281,7 @@ class IPBlockForm { $wgOut->addWikiText( $text ); } - function showLogFragment( &$out, &$title ) { + function showLogFragment( $out, $title ) { $out->addHtml( wfElement( 'h2', NULL, LogPage::logName( 'block' ) ) ); $request = new FauxRequest( array( 'page' => $title->getPrefixedText(), 'type' => 'block' ) ); $viewer = new LogViewer( new LogReader( $request ) );