r92878 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92877‎ | r92878 | r92879 >
Date:19:09, 22 July 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
minor change.
Modified paths:
  • /trunk/extensions/PageSchemas/PageSchemas.classes.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageSchemas/PageSchemas.classes.php
@@ -181,7 +181,7 @@
182182 }
183183 if ( $tag == 'Template' ) {
184184 $ignore = (string) $child->attributes()->ignore;
185 - if( count($child->children()) > 1 ){
 185+ if( count($child->children()) > 0 ){
186186 $templateObj = new PSTemplate($child);
187187 $this->PSTemplates[$i++]= $templateObj;
188188 }else if( $ignore != "true" ) {
@@ -261,7 +261,7 @@
262262 } else if ( $child->getName() == "Field" ){
263263 $ignore = (string) $child->attributes()->ignore;
264264 wfDebugLog( 'myextension', 'Something is not right: ' . print_r( count($child->children()), true ) );
265 - if( count($child->children()) > 1 ){ //@TODO :Can be dealt more efficiently
 265+ if( count($child->children()) > 0 ){ //@TODO :Can be dealt more efficiently
266266 $fieldObj = new PSTemplateField($child);
267267 $this->PSFields[$i++]= $fieldObj;
268268 }else if( $ignore != "true" ) {

Status & tagging log