--- a/server/src/app/Services/LexvoResolver.php Mon Apr 25 14:05:17 2016 +0200
+++ b/server/src/app/Services/LexvoResolver.php Sat May 07 10:06:26 2016 +0200
@@ -42,7 +42,12 @@
public function getNames(array $ids) {
if(count($ids) > config('corpusparole.lexvo_max_ids')) {
- throw new LexvoResolverException("Too manys ids provided");
+ return array_reduce(
+ array_map([$this, 'getNames'], array_chunk($ids, config('corpusparole.lexvo_max_ids'))),
+ 'array_merge',
+ []
+ );
+ // throw new LexvoResolverException("Too manys ids provided");
}
$lexvoids = array_map([$this, 'checkLexvoId'], $ids);