Index: trunk/extensions/SemanticDrilldown/includes/SD_Utils.php |
— | — | @@ -170,12 +170,13 @@ |
171 | 171 | foreach ( $filter_names as $filter_name ) { |
172 | 172 | $filters[] = SDFilter::load( $filter_name ); |
173 | 173 | } |
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. |
175 | 176 | if ( class_exists( 'PSSchema' ) ) { |
176 | 177 | $pageSchemaObj = new PSSchema( $category ); |
177 | | - if($pageSchemaObj->isPSDefined()){ |
| 178 | + if ( $pageSchemaObj->isPSDefined() ) { |
178 | 179 | $filters_ps = SDFilter::loadAllFromPageSchema( $pageSchemaObj ); |
179 | | - $result_filters = array_merge($filters, $filters_ps); |
| 180 | + $result_filters = array_merge( $filters, $filters_ps ); |
180 | 181 | return $result_filters; |
181 | 182 | } |
182 | 183 | } |