Fix Phrasea Highlight

This commit is contained in:
Romain Neutron
2013-05-23 21:16:52 +02:00
parent 5a2a1b5775
commit 873d71cf70

View File

@@ -579,8 +579,11 @@ class PhraseaEngine implements SearchEngineInterface
{
$ret = array();
$this->initialize();
$this->checkSession();
$res = phrasea_fetch_results(
$this->app['session']->get('phrasea_session_id'), ($record->get_number() + 1), 1, true, "[[em]]", "[[/em]]"
$this->app['session']->get('phrasea_session_id'), 1, 20, true, "[[em]]", "[[/em]]"
);
if (!isset($res['results']) || !is_array($res['results'])) {