Skip to content
Snippets Groups Projects
Commit a4235cbc authored by Tim Plunkett's avatar Tim Plunkett
Browse files

Add a workaround for uninitialized localization_plugin.

parent 5019a190
No related branches found
No related tags found
No related merge requests found
......@@ -2097,7 +2097,9 @@ function validate() {
* 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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment