/** * Display change log * @return HTML */ public function changeLog() { // We use request rather than post, because this step can be called by url by displayComfortStep.js if (isset($_REQUEST['destinationBuild'])) { $destinationBuild = $_REQUEST['destinationBuild']; $access_token = $_REQUEST['access_token']; // We get the change log from the ComfortUpdate server $updateModel = new UpdateForm(); $changelog = $updateModel->getChangeLog($destinationBuild); if ($changelog->result) { $aData['errors'] = FALSE; $aData['changelogs'] = $changelog; $aData['html_from_server'] = $changelog->html; $aData['destinationBuild'] = $destinationBuild; $aData['access_token'] = $access_token; } else { return $this->_renderError($changelog); } return $this->controller->renderPartial('update/updater/steps/_change_log', $aData, false, false); } return $this->_renderErrorString("unknown_destination_build"); }