Skip to content

Commit

Permalink
fix for semantic queries in navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
thaider committed Feb 21, 2019
1 parent fe869bf commit 99109d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Hooks.php
Expand Up @@ -297,7 +297,7 @@ static function parseButtonLink( $line, $parser, $frame ) {
if ( !is_numeric( $semanticHitNumber ) || $semanticHitNumber < 1 ) {
return array( array( 'text' => $semanticQuery, 'href' => 'INVALID QUERY' ) );
}
$semanticHits = $parser->recursiveTagParse( '{{#ask:' . $semanticQuery . '|format=list|link=none}}', false );
$semanticHits = $parser->recursiveTagParse( '{{#ask:' . $semanticQuery . '|link=none}}', false );
$semanticHits = explode( ',', $semanticHits );
$semanticLinks = array();
foreach ( $semanticHits as $semanticHit ) {
Expand Down

1 comment on commit 99109d4

@krabina
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works great!

Please sign in to comment.