Index: trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php |
— | — | @@ -35,11 +35,11 @@ |
36 | 36 | protected function readParameters( $params, $outputmode ) { |
37 | 37 | parent::readParameters( $params, $outputmode ); |
38 | 38 | |
39 | | - if ( !array_key_exists( 'includename', $params ) || !in_array( $params['includename'], array( 'yes', 'no' ) ) ) { |
40 | | - $params['includename'] = 'no'; |
| 39 | + if ( !array_key_exists( 'includesubject', $params ) || !in_array( $params['includesubject'], array( 'yes', 'no' ) ) ) { |
| 40 | + $params['includesubject'] = 'no'; |
41 | 41 | } |
42 | 42 | |
43 | | - $this->includeName = $params['includename'] == 'yes'; |
| 43 | + $this->includeName = $params['includesubject'] == 'yes'; |
44 | 44 | |
45 | 45 | if ( !array_key_exists( 'increase', $params ) || !in_array( $params['increase'], array( 'linear', 'log' ) ) ) { |
46 | 46 | $params['increase'] = 'log'; |
— | — | @@ -268,7 +268,7 @@ |
269 | 269 | public function getParameters() { |
270 | 270 | $params = parent::getParameters(); |
271 | 271 | |
272 | | - $params[] = array( 'name' => 'includename', 'type' => 'enumeration', 'description' => wfMsg( 'srf_paramdesc_includename' ), 'values' => array( 'yes', 'no' ) ); |
| 272 | + $params[] = array( 'name' => 'includesubject', 'type' => 'enumeration', 'description' => wfMsg( 'srf_paramdesc_includesubject' ), 'values' => array( 'yes', 'no' ) ); |
273 | 273 | $params[] = array( 'name' => 'increase', 'type' => 'enumeration', 'description' => wfMsg( 'srf_paramdesc_increase' ), 'values' => array( 'linear', 'log' ) ); |
274 | 274 | $params[] = array( 'name' => 'tagorder', 'type' => 'enumeration', 'description' => wfMsg( 'srf_paramdesc_tagorder' ), 'values' => array( 'alphabetic', 'asc', 'desc', 'random', 'unchanged' ) ); |
275 | 275 | |
Index: trunk/extensions/SemanticResultFormats/SRF_Messages.php |
— | — | @@ -80,7 +80,7 @@ |
81 | 81 | |
82 | 82 | // "tagcloud" format |
83 | 83 | 'srf_printername_tagcloud' => 'Tag cloud', |
84 | | - 'srf_paramdesc_includename' => 'If the names of the object themselves should be included', |
| 84 | + 'srf_paramdesc_includesubject' => 'If the names of the subjects themselves should be included', |
85 | 85 | 'srf_paramdesc_increase' => 'How to increase the size of tags', |
86 | 86 | 'srf_paramdesc_tagorder' => 'The order of the tags', |
87 | 87 | 'srf_paramdesc_mincount' => 'The minimum amount of times a value needs to occur to be listed', |