r110501 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110500‎ | r110501 | r110502 >
Date:17:03, 1 February 2012
Author:jeroendedauw
Status:ok
Tags:
Comment:
load defaults so that old revs dont break after fields get added
Modified paths:
  • /trunk/extensions/EducationProgram/includes/EPRevision.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/includes/EPRevision.php
@@ -94,7 +94,7 @@
9595 */
9696 public function getObject() {
9797 $class = $this->getField( 'type' );
98 - return $class::newFromArray( $this->getField( 'data' ) );
 98+ return $class::newFromArray( $this->getField( 'data' ), true );
9999 }
100100
101101 /**

Status & tagging log