Skip to content

Commit

Permalink
Fix tagcloud rendering behvaiour on special and wikipages
Browse files Browse the repository at this point in the history
Additional content parsing is influenced by special page/template status.

An eyeball check on the following options (format=tagcloud):

1 link=all
2 link=none
3 template=TagCloud / link=none
4 template=TagCloud / link=all
5 widget=wordcloud / link=none
6 widget=wordcloud / link=all
7 widget=wordcloud / template=TagCloud
8 widget=sphere / link=none
9 widget=sphere / link=all
10 widget=sphere / template=TagCloud
  • Loading branch information
mwjames committed Jan 16, 2014
1 parent 71e9641 commit fc1fb9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions formats/tagcloud/TagCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ public function getResultText( SMWQueryResult $queryResult, $outputmode ) {

// Template support
$this->hasTemplates = $this->params['template'] !== '';

// Prioritize HTML setting
$this->isHTML = $this->params['widget'] !== '' && $this->params['template'] === '';
$this->isHTML = $this->getTitle()->isSpecialPage() && !$this->hasTemplates;

// Register RL module
if ( in_array( $this->params['widget'], array( 'sphere', 'wordcloud' ) ) ) {
Expand Down

0 comments on commit fc1fb9c

Please sign in to comment.