Commit 44c25bdf authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

use views_get_plugin instead of using the plugin manager manually

parent 5cd37877
...@@ -472,8 +472,7 @@ function init_display($reset = FALSE) { ...@@ -472,8 +472,7 @@ function init_display($reset = FALSE) {
$this->display[$id] = clone $this->display[$id]; $this->display[$id] = clone $this->display[$id];
unset($this->display[$id]->handler); unset($this->display[$id]->handler);
} }
$plugin_manager = new DisplayPluginManager(); $this->display[$id]->handler = views_get_plugin('display', $this->display[$id]->display_plugin);
$this->display[$id]->handler = $plugin_manager->createInstance($this->display[$id]->display_plugin);
if (!empty($this->display[$id]->handler)) { if (!empty($this->display[$id]->handler)) {
$this->display[$id]->handler->localization_keys = array($id); $this->display[$id]->handler->localization_keys = array($id);
// Initialize the new display handler with data. // Initialize the new display handler with data.
......
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