if ($user->hasPerm('copyContent[]') && $user->getComplexPerm('clang')->hasPerm($clang_a) && $user->getComplexPerm('clang')->hasPerm($clang_b)) { if (rex_content_service::copyContent($article_id, $article_id, $clang_a, $clang_b, $slice_revision)) { $info = rex_i18n::msg('content_contentcopy'); } else { $warning = rex_i18n::msg('content_errorcopy'); } } else { $warning = rex_i18n::msg('no_rights_to_this_function'); } } // ------------------------------------------ END: COPY LANG CONTENT // ------------------------------------------ START: MOVE ARTICLE if (rex_post('movearticle', 'boolean') && $category_id != $article_id) { $category_id_new = rex_post('category_id_new', 'int'); if (rex::getUser()->hasPerm('moveArticle[]') && rex::getUser()->getComplexPerm('structure')->hasCategoryPerm($category_id_new)) { if (rex_article_service::moveArticle($article_id, $category_id, $category_id_new)) { $info = rex_i18n::msg('content_articlemoved'); ob_end_clean(); rex_response::sendRedirect($context->getUrl(['page' => 'content/edit', 'info' => $info], false)); } else { $warning = rex_i18n::msg('content_errormovearticle'); } } else { $warning = rex_i18n::msg('no_rights_to_this_function'); } } // ------------------------------------------ END: MOVE ARTICLE // ------------------------------------------ START: COPY ARTICLE if (rex_post('copyarticle', 'boolean')) { $category_copy_id_new = rex_post('category_copy_id_new', 'int'); if (rex::getUser()->hasPerm('copyArticle[]') && rex::getUser()->getComplexPerm('structure')->hasCategoryPerm($category_copy_id_new)) {