diff --git a/core/modules/aggregator/aggregator.module b/core/modules/aggregator/aggregator.module index 49cd6e3..60e1d4a 100644 --- a/core/modules/aggregator/aggregator.module +++ b/core/modules/aggregator/aggregator.module @@ -455,12 +455,7 @@ function aggregator_feed_load($fid) { * instead. */ function aggregator_category_load($cid) { - $categories = &drupal_static(__FUNCTION__); - if (!isset($categories[$cid])) { - $categories[$cid] = db_query('SELECT * FROM {aggregator_category} WHERE cid = :cid', array(':cid' => $cid))->fetchObject(); - } - - return $categories[$cid]; + return (array) Drupal::service('aggregator.category.storage')->load($cid); } /**