diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Routing/AggregatorController.php b/core/modules/aggregator/lib/Drupal/aggregator/Routing/AggregatorController.php index 7b12038..ceb7e2c 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Routing/AggregatorController.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Routing/AggregatorController.php @@ -7,7 +7,6 @@ namespace Drupal\aggregator\Routing; -use Drupal; use Drupal\Core\ControllerInterface; use Drupal\Core\Database\Connection; use Drupal\Core\Entity\EntityManager; @@ -161,15 +160,14 @@ public function adminOverview() { * The rendered list of items for the feed. */ public function pageLast() { - drupal_add_feed('aggregator/rss', config('system.site')->get('name') . ' ' . t('aggregator')); - // @todo Remove this function once after all controller conversions are + // @todo Refactor this function once after all controller conversions are // done. - Drupal::moduleHandler()->loadInclude('aggregator', 'inc', 'aggregator.pages'); + \Drupal::moduleHandler()->loadInclude('aggregator', 'inc', 'aggregator.pages'); $items = aggregator_load_feed_items('sum'); - // @todo Remove this function once after all controller conversions are + // @todo Refactor this function once after all controller conversions are // done. return _aggregator_page_list($items, arg(1)); }