When the "All languages" option is selected in the Twingly block configuration no results are returned.
To fix, change:
$lang = (!empty($params['lang'])) ? 'lang:'.implode('|', $params['lang']) : '';
To:
$lang = (!empty($params['lang']) && $params['lang'][0] != '0') ? 'lang:'.implode('|', $params['lang']) : '';
Comments
Comment #1
freakalis commentedThanks, fix commited to 1.0.