Permalink
Browse files

Fix arguments of ft_queryParser which changed in Rincewind

  • Loading branch information...
kazmiya committed Aug 5, 2012
1 parent 08ff1a8 commit 6b19d03c46a5594de2d65b70f49518864477a85b
Showing with 10 additions and 1 deletion.
  1. +10 −1 action.php
View
@@ -170,8 +170,17 @@ function getCandidatesFromReferer()
// users seem to have jumped from search result link in this wiki
require_once DOKU_INC . 'inc/fulltext.php';
$query = urldecode($matches[1]);
// set highlight candidates
$parsed_query = ft_queryParser(urldecode($matches[1]));
// (ft_queryParser has been modified since DokuWiki Rincewind)
if (function_exists('idx_get_indexer')) {
$Indexer = idx_get_indexer();
$parsed_query = ft_queryParser($Indexer, $query);
} else {
$parsed_query = ft_queryParser($query);
}
$HIGH = $parsed_query['highlight'];
}
}

0 comments on commit 6b19d03

Please sign in to comment.