http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84669
Revision: 84669
Author: aaron
Date: 2011-03-24 08:44:42 +0000 (Thu, 24 Mar 2011)
Log Message:
-----------
Follow-up r84659: no need to pass parser by reference to event handlers
Modified Paths:
--------------
trunk/phase3/includes/ImageGallery.php
trunk/phase3/includes/parser/Parser.php
Modified: trunk/phase3/includes/ImageGallery.php
===================================================================
--- trunk/phase3/includes/ImageGallery.php 2011-03-24 06:59:33 UTC (rev
84668)
+++ trunk/phase3/includes/ImageGallery.php 2011-03-24 08:44:42 UTC (rev
84669)
@@ -259,7 +259,7 @@
# 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 {
Modified: trunk/phase3/includes/parser/Parser.php
===================================================================
--- trunk/phase3/includes/parser/Parser.php 2011-03-24 06:59:33 UTC (rev
84668)
+++ trunk/phase3/includes/parser/Parser.php 2011-03-24 08:44:42 UTC (rev
84669)
@@ -1911,7 +1911,7 @@
# 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 @@
# 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 );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs