r114931 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114930‎ | r114931 | r114932 >
Date:21:28, 16 April 2012
Author:bsitu
Status:deferred
Tags:
Comment:
add default value to pagetriage metadata
Modified paths:
  • /trunk/extensions/PageTriage/includes/ArticleMetadata.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageTriage/includes/ArticleMetadata.php
@@ -165,7 +165,9 @@
166166 }
167167 }
168168
169 - foreach ( $pageData as $pageId => $val ) {
 169+ $defaultVal = array_fill_keys( array_keys( self::getValidTags() ), '' );
 170+ foreach ( $pageData as $pageId => &$val ) {
 171+ $val += $defaultVal;
170172 $this->setMetadataToCache( $pageId, $val );
171173 }
172174

Status & tagging log