Details
Description
eZModule::setCurrentView sets the active view by setting a global variable:
$GLOBALS['eZModuleCurrentView'] = $name;
On the other hand, the view is retrieved using an index of this global variable:
$currentView = $GLOBALS['eZModuleCurrentView']; if ( $currentView !== false ) return $currentView['view'];
No can work. Patch attached.
(not a blocker at all, since the method isn't used, except in new tests we're writing).