$siteAccess = $contentINI->variable('VersionView', 'DefaultPreviewDesign'); } else { $siteAccess = eZTemplateDesignResource::designSetting('site'); } } $access = $GLOBALS['eZCurrentAccess']; $access['name'] = $siteAccess; if ($access['type'] === eZSiteAccess::TYPE_URI) { $access['uri_part'] = array($siteAccess); } eZSiteAccess::load($access); eZDebug::checkDebugByUser(); // Change content object default language $GLOBALS['eZContentObjectDefaultLanguage'] = $LanguageCode; eZTranslatorManager::resetTranslations(); ezpI18n::reset(); eZContentObject::clearCache(); eZContentLanguage::expireCache(); $Module->setTitle('View ' . $class->attribute('name') . ' - ' . $contentObject->attribute('name')); $ini = eZINI::instance(); $res = eZTemplateDesignResource::instance(); $res->setDesignSetting($ini->variable('DesignSettings', 'SiteDesign'), 'site'); $res->setOverrideAccess($siteAccess); $tpl = eZTemplate::factory(); if ($http->hasSessionVariable('LastAccessesVersionURI')) { $tpl->setVariable('redirect_uri', $http->sessionVariable('LastAccessesVersionURI')); } $designKeys = array(array('object', $contentObject->attribute('id')), array('node', $virtualNodeID), array('remote_id', $contentObject->attribute('remote_id')), array('class', $class->attribute('id')), array('class_identifier', $class->attribute('identifier')), array('viewmode', 'full')); // View mode if ($assignment) { $designKeys[] = array('parent_node', $assignment->attribute('parent_node'));