Add a workaround for uninitialized localization_plugin.

8.0.x
Tim Plunkett 2012-07-29 15:11:52 -05:00
parent 5019a19032
commit a4235cbc94
1 changed files with 3 additions and 1 deletions

View File

@ -2097,7 +2097,9 @@ class View extends ViewsDbObject {
* Find and initialize the localizer plugin.
*/
function init_localization() {
if (isset($this->localization_plugin) && is_object($this->localization_plugin)) {
// @todo The check for the view was added to ensure that
// $this->localization_plugin->init() is run.
if (isset($this->localization_plugin) && is_object($this->localization_plugin) && isset($this->view)) {
return TRUE;
}