From: umherirrender Date: Sun, 23 Sep 2012 18:53:30 +0000 (+0200) Subject: Remove pass-by-reference from WikiExporter constructor X-Git-Tag: 1.31.0-rc.0~22300^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=fe136d618d847060ddfdabb435f583c6b0b793c9;p=lhc%2Fweb%2Fwiklou.git Remove pass-by-reference from WikiExporter constructor The pass-by-reference is a left over from PHP 4 times. This avoids: Strict Standards: Only variables should be passed by reference in \includes\api\ApiQuery.php on line 523 Change-Id: I8c9afcd9f7631bbb0bdb9ea608339bbbd5726a26 --- diff --git a/includes/Export.php b/includes/Export.php index f01fb23732..c2409de98f 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -83,9 +83,9 @@ class WikiExporter { * @param $buffer Int: one of WikiExporter::BUFFER or WikiExporter::STREAM * @param $text Int: one of WikiExporter::TEXT or WikiExporter::STUB */ - function __construct( &$db, $history = WikiExporter::CURRENT, + function __construct( $db, $history = WikiExporter::CURRENT, $buffer = WikiExporter::BUFFER, $text = WikiExporter::TEXT ) { - $this->db =& $db; + $this->db = $db; $this->history = $history; $this->buffer = $buffer; $this->writer = new XmlDumpWriter();