r87946 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87945‎ | r87946 | r87947 >
Date:06:13, 13 May 2011
Author:mkroetzsch
Status:ok
Tags:
Comment:
fixed a PHP strict standards violation
Modified paths:
  • /trunk/extensions/Validator/includes/ParserHook.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Validator/includes/ParserHook.php
@@ -213,7 +213,8 @@
214214 $this->parser = $parser;
215215 $this->frame = $frame;
216216
217 - $defaultParam = array_shift( $this->getDefaultParameters( self::TYPE_TAG ) );
 217+ $defaultParameters = $this->getDefaultParameters( self::TYPE_TAG )
 218+ $defaultParam = array_shift( $defaultParameters );
218219
219220 // If there is a first default parameter, set the tag contents as it's value.
220221 if ( !is_null( $defaultParam ) && !is_null( $input ) ) {

Status & tagging log