r99695 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99694‎ | r99695 | r99696 >
Date:16:40, 13 October 2011
Author:yaron
Status:deferred
Tags:
Comment:
Formatting improvements
Modified paths:
  • /trunk/extensions/SemanticDrilldown/includes/SD_Utils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticDrilldown/includes/SD_Utils.php
@@ -170,12 +170,13 @@
171171 foreach ( $filter_names as $filter_name ) {
172172 $filters[] = SDFilter::load( $filter_name );
173173 }
174 - //Code to read from the pageSchema and return filters
 174+ // Read from the Page Schemas schema for this category, if
 175+ // it exists, and add any filters defined there.
175176 if ( class_exists( 'PSSchema' ) ) {
176177 $pageSchemaObj = new PSSchema( $category );
177 - if($pageSchemaObj->isPSDefined()){
 178+ if ( $pageSchemaObj->isPSDefined() ) {
178179 $filters_ps = SDFilter::loadAllFromPageSchema( $pageSchemaObj );
179 - $result_filters = array_merge($filters, $filters_ps);
 180+ $result_filters = array_merge( $filters, $filters_ps );
180181 return $result_filters;
181182 }
182183 }