From: Aaron Schulz Date: Thu, 24 Mar 2011 08:44:42 +0000 (+0000) Subject: Follow-up r84659: no need to pass parser by reference to event handlers X-Git-Tag: 1.31.0-rc.0~31213 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=0a5016f4e059462bbebaa299098bc1a1f6b2aedd;p=lhc%2Fweb%2Fwiklou.git Follow-up r84659: no need to pass parser by reference to event handlers --- diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index dba284e85e..5471b27064 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -259,7 +259,7 @@ class ImageGallery # Give extensions a chance to select the file revision for us $time = $sha1 = false; wfRunHooks( 'BeforeParserFetchFileAndTitle', - array( &$this->mParser, &$nt, &$time, &$sha1, &$descQuery ) ); + array( $this->mParser, &$nt, &$time, &$sha1, &$descQuery ) ); # Fetch and register the file (file title may be different via hooks) list( $img, $nt ) = $this->mParser->fetchFileAndTitle( $nt, $time, $sha1 ); } else { diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index c8af287e92..660566e647 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1911,7 +1911,7 @@ class Parser { # Give extensions a chance to select the file revision for us $time = $sha1 = $descQuery = false; wfRunHooks( 'BeforeParserFetchFileAndTitle', - array( &$this, &$nt, &$time, &$sha1, &$descQuery ) ); + array( $this, &$nt, &$time, &$sha1, &$descQuery ) ); # Fetch and register the file (file title may be different via hooks) list( $file, $nt ) = $this->fetchFileAndTitle( $nt, $time, $sha1 ); # Cloak with NOPARSE to avoid replacement in replaceExternalLinks @@ -4699,7 +4699,7 @@ class Parser { # Give extensions a chance to select the file revision for us $time = $sha1 = $descQuery = false; wfRunHooks( 'BeforeParserFetchFileAndTitle', - array( &$this, &$title, &$time, &$sha1, &$descQuery ) ); + array( $this, &$title, &$time, &$sha1, &$descQuery ) ); # Fetch and register the file (file title may be different via hooks) list( $file, $title ) = $this->fetchFileAndTitle( $title, $time, $sha1 );