r81801 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81800‎ | r81801 | r81802 >
Date:00:21, 9 February 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
typo fix and tweak
Modified paths:
  • /trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php
@@ -47,8 +47,8 @@
4848
4949 $this->sizeMode = $params['increase'];
5050
51 - if ( !array_key_exists( 'tagorder', $params ) || !in_array( $params['tagorder'], array( 'alphabetic', 'asc', 'desc', 'random', 'unchanged' ) ) ) {
52 - $params['tagorder'] = 'alphabetic';
 51+ if ( !array_key_exists( 'tagorder', $params ) || !in_array( $params['tagorder'], array( 'alphabetical', 'asc', 'desc', 'random', 'unchanged' ) ) ) {
 52+ $params['tagorder'] = 'alphabetical';
5353 }
5454
5555 $this->tagOrder = $params['tagorder'];
@@ -72,7 +72,7 @@
7373 $this->minTagSize = $params['minsize'];
7474
7575 if ( !array_key_exists( 'maxsize', $params ) || !ctype_digit( (string)$params['maxsize'] ) ) {
76 - $params['maxsize'] = 177;
 76+ $params['maxsize'] = 242;
7777 }
7878
7979 $this->maxSize = $params['maxsize'];
@@ -188,7 +188,7 @@
189189 case 'asc' :
190190 asort( $tags );
191191 break;
192 - case 'alphabetic' :
 192+ case 'alphabetical' :
193193 $tagNames = array_keys( $tags );
194194 natcasesort( $tagNames );
195195 $newTags = array();

Status & tagging log