Commit 40193d46 authored by andrei.dincu's avatar andrei.dincu

Issue #2249723 by andrei.dincu: invokeAll() takes second parameter as array now

parent 72990774
......@@ -76,7 +76,7 @@ function drush_xmlsitemap_index() {
$entity_manager = \Drupal::entityManager()->getStorage('xmlsitemap');
$count_before = count($entity_manager->loadMultiple());
\Drupal::moduleHandler()->invokeAll('xmlsitemap_index_links', $limit);
\Drupal::moduleHandler()->invokeAll('xmlsitemap_index_links', array('limit' => $limit));
$count_after = count($entity_manager->loadMultiple());
if ($count_after == $count_before) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment