public function previewRevisionAction() { SxCms_Acl::requireAcl('page', 'page.revision.preview'); $system = new Zend_Session_Namespace('System'); $revisionId = (int) $this->_getParam('id'); $mvc = Zend_Layout::getMvcInstance(); $mvc->getView()->setScriptPath(APPLICATION_PATH . '/modules/default/views/scripts'); $proxy = new SxCms_Page_Proxy(); $page = $proxy->getPageByRevisionId($revisionId, $system->lng); $this->view->page = $page; $this->_helper->layout->setLayoutPath(APPLICATION_PATH . '/modules/default/views/scripts'); $this->_helper->layout->setLayout($page->getLayout()); if ($page->getType() == SxCms_Page::SUMMARY) { $children = $proxy->getPagesByParentId($page->getId(), null, $system->lng, true); $this->view->children = $children; $this->renderScript('index/summary.phtml'); return; } $this->renderScript('index/content.phtml'); }