//attach the page to the tree CMS_tree::attachPageToTree($pg, $father); if ($pg->getPublication() != RESOURCE_PUBLICATION_NEVERVALIDATED) { CMS_tree::attachPageToTree($pg, $father, true); } if (!APPLICATION_ENFORCES_WORKFLOW) { //submit the page to the regenerator CMS_tree::submitToRegenerator($pg->getID(), true); //validate the father $pg->regenerate(true); $validation = new CMS_resourceValidation(MOD_STANDARD_CODENAME, RESOURCE_EDITION_SIBLINGSORDER + RESOURCE_EDITION_CONTENT, $father); $mod = CMS_modulesCatalog::getByCodename(MOD_STANDARD_CODENAME); $mod->processValidation($validation, VALIDATION_OPTION_ACCEPT); } $cms_message = $cms_language->getMessage(MESSAGE_ACTION_OPERATION_DONE); $archives = CMS_tree::getArchivedPagesData(); $log = new CMS_log(); $log->logResourceAction(CMS_log::LOG_ACTION_RESOURCE_UNARCHIVE, $cms_user, MOD_STANDARD_CODENAME, $pg->getStatus(), "", $pg); } } break; } $dialog = new CMS_dialog(); $content = ''; $dialog->setTitle($cms_language->getMessage(MESSAGE_PAGE_TITLE), 'pic_archives.gif'); if ($cms_message) { $dialog->setActionMessage($cms_message); $dialog->reloadTree(); } if (is_array($archives) && $archives) { $content .= '