r65012 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65011‎ | r65012 | r65013 >
Date:08:08, 14 April 2010
Author:vasilievvv
Status:deferred
Tags:
Comment:
Fix PHP warnings.
Modified paths:
  • /trunk/extensions/InlineScripts/interpreter/Data.php (modified) (history)

Diff [purge]

Index: trunk/extensions/InlineScripts/interpreter/Data.php
@@ -208,7 +208,7 @@
209209 if( $this->type == self::DNull && $indices[0] === null ) {
210210 $this->type = self::DList;
211211 $this->value = array();
212 - $this->setValueByIndices( $val, $indices );
 212+ $this->setValueByIndices( $val, $indices, $line );
213213 } elseif( $this->type == self::DList ) {
214214 if( $indices[0] === null ) {
215215 $this->data[] = $val;
@@ -217,7 +217,7 @@
218218 if( $idx < 0 || $idx >= count( $this->data ) )
219219 throw new ISUserVisibleException( 'outofbounds', $line, array( count( $this->data ), $idx ) );
220220 if( count( $indices ) > 1 )
221 - $this->data[$idx]->setValueByIndices( $val, array_slice( $indices, 1 ) );
 221+ $this->data[$idx]->setValueByIndices( $val, array_slice( $indices, 1 ), $line );
222222 else
223223 $this->data[$idx] = $val;
224224 }

Status & tagging log