http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88213
Revision: 88213
Author: yaron
Date: 2011-05-16 03:28:16 +0000 (Mon, 16 May 2011)
Log Message:
-----------
Added some helpful curly brackets for if statements
Modified Paths:
--------------
trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php
Modified: trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php
===================================================================
--- trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php
2011-05-16 03:18:25 UTC (rev 88212)
+++ trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php
2011-05-16 03:28:16 UTC (rev 88213)
@@ -343,10 +343,11 @@
$sql .= "JOIN $smw_atts a$i ON ids.smw_id =
a$i.s_id ";
}
}
- if ( $subcategory )
+ if ( $subcategory ) {
$actual_cat = str_replace( ' ', '_', $subcategory );
- else
+ } else {
$actual_cat = str_replace( ' ', '_', $category );
+ }
$actual_cat = str_replace( "'", "\'", $actual_cat );
$sql .= "WHERE insts.o_id IN
(SELECT smw_id FROM $smw_ids cat_ids
@@ -749,8 +750,9 @@
$found_results_for_filter = false;
if ( count( $f->allowed_values ) == 0 ) {
$filter_values = $f->getAllValues();
- if ( count( $filter_values ) > 0 )
+ if ( count( $filter_values ) > 0 ) {
$found_results_for_filter = true;
+ }
} else {
$filter_values = array();
foreach ( $f->allowed_values as $value ) {
@@ -798,8 +800,9 @@
} elseif ( $f->input_type == wfMsgForContent(
'sd_filter_daterange' ) ) {
$results_line = $this->printDateRangeInput(
$filter_name );
$normal_filter = false;
- } else
+ } else {
$results_line = $this->printUnappliedFilterValues(
$cur_url, $f, $filter_values );
+ }
$text = "";
$filter_label = $this->printFilterLabel( $f->name );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs