r87496 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87495‎ | r87496 | r87497 >
Date:13:34, 5 May 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fix from bug 28832 by Matt Voysey
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php
@@ -175,7 +175,7 @@
176176 while ( ( $object = efSRFGetNextDV( $field ) ) !== false ) { // Loop over property values
177177 $event = $this->handlePropertyValue(
178178 $object, $outputmode, $pr, $first_col, $hastitle, $hastime,
179 - $first_value, $isEventline, $curmeta, $curdata, $date_value, $output
 179+ $first_value, $isEventline, $curmeta, $curdata, $date_value, $output, $positions
180180 );
181181 if ( $event !== false ) {
182182 $events[] = $event;
@@ -236,6 +236,8 @@
237237 /**
238238 * Hanldes a single property value. Returns an array with data for a single event or false.
239239 *
 240+ * FIXME: 13 arguments, of which a whole bunch are byref... not a good design :)
 241+ *
240242 * @since 1.5.3
241243 *
242244 * @param SMWDataValue $object
@@ -250,11 +252,12 @@
251253 * @param string &$curdata
252254 * @param &$date_value
253255 * @param boolean &$output
 256+ * @param array &$positions
254257 *
255258 * @return false or array
256259 */
257260 protected function handlePropertyValue( SMWDataValue $object, $outputmode, SMWPrintRequest $pr, $first_col,
258 - &$hastitle, &$hastime, $first_value, $isEventline, &$curmeta, &$curdata, $date_value, &$output ) {
 261+ &$hastitle, &$hastime, $first_value, $isEventline, &$curmeta, &$curdata, $date_value, &$output, array &$positions ) {
259262
260263 $event = false;
261264

Status & tagging log