Index: trunk/extensions/WikiCategoryTagCloud/WikiCategoryTagCloud.php |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | $textSize = $MIN_SIZE + ( $INCREASE_FACTOR * ( $tags[$i][1] ) ) / ( $max ); |
128 | 128 | $title = Title::makeTitle( NS_CATEGORY, $tags[$i][0] ); |
129 | 129 | $style = $link_style; |
130 | | - if ( $style != '' && $style { -1 } != ';' ) $style .= ';'; |
| 130 | + if ( $style != '' && substr($style, -1) != ';' ) $style .= ';'; |
131 | 131 | $style .= "font-size: {$textSize}%;"; |
132 | 132 | $currentRow = "<a class=\"" . implode( ' ', $link_classes ) . "\" style=\"{$style}\" href=\"" . $title->getLocalURL() . "\">" . $title->getText() . "</a> "; |
133 | 133 | $htmlOut = $htmlOut . $currentRow; |
— | — | @@ -143,4 +143,4 @@ |
144 | 144 | return htmlspecialchars( $matches[1] ); |
145 | 145 | } |
146 | 146 | } |
147 | | -} |
\ No newline at end of file |
| 147 | +} |