From 44c25bdffd2b2d9779aae4c0eef3dcd6329eacc1 Mon Sep 17 00:00:00 2001 From: Daniel Wehner <daniel.wehner@erdfisch.de> Date: Fri, 27 Jul 2012 09:21:26 -0500 Subject: [PATCH] use views_get_plugin instead of using the plugin manager manually --- lib/Drupal/views/View.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Drupal/views/View.php b/lib/Drupal/views/View.php index db826961a90a..bed14f7014c1 100644 --- a/lib/Drupal/views/View.php +++ b/lib/Drupal/views/View.php @@ -472,8 +472,7 @@ function init_display($reset = FALSE) { $this->display[$id] = clone $this->display[$id]; unset($this->display[$id]->handler); } - $plugin_manager = new DisplayPluginManager(); - $this->display[$id]->handler = $plugin_manager->createInstance($this->display[$id]->display_plugin); + $this->display[$id]->handler = views_get_plugin('display', $this->display[$id]->display_plugin); if (!empty($this->display[$id]->handler)) { $this->display[$id]->handler->localization_keys = array($id); // Initialize the new display handler with data. -- GitLab