Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
44c25bdf
Commit
44c25bdf
authored
Jul 27, 2012
by
dawehner
Committed by
tim.plunkett
Oct 21, 2012
Browse files
use views_get_plugin instead of using the plugin manager manually
parent
5cd37877
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Drupal/views/View.php
View file @
44c25bdf
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment